---
schema_version: "1"
id: 57fde7fe1ff2534a2a43f593b7953ada482bfc831496ebf57d3a6db0993b04ff
title: Close Quick Action
collection: developer
version: current
locale: en-us
portal_url: https://docs.salesforce.com/developer/current/en-us/lightning-base-components/lightning-design-system/guides/aura/components/force/closeQuickAction/force-close-quick-action.md
canonical_url: https://developer.salesforce.com/docs/platform/lightning-component-reference/guide/force-close-quick-action.html
source_site: developer.salesforce.com
content_type: documentation
content_hash: 28fbd95548bb7b462bef98752d6995da2baa75e3a28c1d15604032ff26519819
products:
  - Lightning Component Reference
---
# Close Quick Action

**`force:closeQuickAction`**

Closes a quick action panel. Only one quick action panel can be open in the app at a time.

**For Use In**

Lightning Experience, Salesforce Mobile App

::::::tabset{tabs='["Develop", "Specifications"]'}

:::::tab

To close a quick action panel, usually in response to completing or canceling the action, run `$A.get("e.force:closeQuickAction").fire();`.

This example closes the quick action panel after processing the input from the panel’s user interface and displaying a “toast” message with the processing results. While the processing and the toast are unrelated to closing the quick action, the sequence is important. Firing `force:closeQuickAction` should be the last thing your quick action handler does.

```javascript
/*quickAddController.js*/
({
  clickAdd: function (component, event, helper) {
    // Get the values from the form
    var n1 = component.find("num1").get("v.value");
    var n2 = component.find("num2").get("v.value");

    // Display the total in a "toast" status message
    var resultsToast = $A.get("e.force:showToast");
    resultsToast.setParams({
      title: "Quick Add: " + n1 + " + " + n2,
      message: "The total is: " + (n1 + n2) + ".",
    });
    resultsToast.fire();

    // Close the action panel
    var dismissActionPanel = $A.get("e.force:closeQuickAction");
    dismissActionPanel.fire();
  },
});
```

This event is handled by the `one.app` container. It’s supported in Lightning Experience and the Salesforce mobile app only.


:::::

:::::tab

![No specifications to show](https://developer.salesforce.com/media/no-specs.png)


:::::

::::::
