JavaScript Button Functions
When using a function to implement a custom button, the following JavaScript reference functions are available:
- openExternalApp. You can configure this function for any module to pass data to an external application. If configured, then an Open External Application icon appears in the client application (in the top right-hand corner) when viewing record details. This function is called when the user taps the Open External Application icon.
- onActionJSON. You can configure a custom action button to perform a custom action by adding a JavaScript function of type CustomActions (where Type is equal to CustomActions) to the module of your choice. Once configured, the custom action button appears for the module in client applications, and the onActionJSON function is called whenever a user selects the custom action button.