Call a Smart Action using a Button or Hyperlink
You can call a smart action using a button or hyperlink.
For this, you need to:
- Open your container page in Visual Builder Studio.
- Navigate to page designer and create a button or hyperlink in the required panel.
- In the Action Chains tab, in the
invokeSmartAction function for the button or
hyperlink, call the following function on a button or link action chain,
where ‘SDA-CreateTask-opportunities’ is the name of the Smart Action:
await ActionsHelper.invokeSmartAction({smartActionName: 'SDA-CreateTask-opportunities' });The following needs to be in define:
'vx/oracle_cx_fragmentsUI/ui/self/resources/js/utils/actionsHelper'
You can now preview you changes in the application.