# EndSelections method

Ends the selection mode on a visualization. The selections are accepted or aborted when exiting the selection mode, depending on the *qAccept* parameter value.

## Parameters

| Name | Description | Mandatory | Type |
| --- | --- | --- | --- |
| qAccept | Set this parameter to true to accept the selections before exiting the selection mode. | Yes | Boolean |

## See also

[Enter and exit the selection mode](https://help.qlik.com/en-US/sense-developer/November2024/csh/engineapi/enter-and-exit-selection-mode)

[AbortModal method](https://help.qlik.com/en-US/sense-developer/November2024/Subsystems/EngineJSONAPI/Content/service-Doc-AbortModal.htm)

[BeginSelections method](https://help.qlik.com/en-US/sense-developer/November2024/Subsystems/EngineJSONAPI/Content/service-GenericObject-BeginSelections.htm)