--- title: ResultQuickAction component slug: '2963' canonical_url: https://docs.coveo.com/en/2963/ collection: coveo-for-salesforce source_format: adoc --- # ResultQuickAction component The `ResultQuickAction` component is a result template component that allows your users to quickly add a custom result action that uses a Salesforce action. ## Options The component offers the following options: ### `actionName` Specifies the name of the Quick Action bound to this result action. Default value is empty, even if this field is required. ```xml
``` Where you replace `` by the name of the Quick Action bounded to this result action. ### `targetFields` Specifies the fields that will be sent in the arguments of the Quick Action. This argument must be provided as a JSON object. Default value is `+${FieldName}+`. ```html
``` ### `onSendActionEvent` Specifies the name of the event to dispatch. You could then hook to that event and modify the action arguments before sending the action to Salesforce. This field is optional. ```html
``` ### `autoSubmit` Specifies if the component should submit the post right away. Default value is `false`. ```html
``` ### `icon` Specifies the icon that the ResultAction will display. If text is provided, the button will contain that text. If the HTML of an SVG image is provided, that image will be displayed in the button. ```html
``` Where you replace `` with the text that the button should contain or the HTML of the SVG image that the button should display. ### `tooltip` The tooltip that displays on hovering the ResultAction. Default value is empty. ```html
``` Where you replace `` with the message you want to be displayed when hovering the ResultAction. ## Methods This component doesn't provide any methods. ## Usage This component can be included in the Coveo Insight Panel Lightning Component. It should be inserted in the `
` section. ```html
```