You can add JavaScript to a module's quick action buttons in the Admin application. You can also add JavaScript to Custom Action buttons.
To add JavaScript code to quick action buttons
- Start the Admin application, and click Map settings
- Click Module Settings, and click on the Quick Action icon to the far right.
- You will have a pop up window display all currently configured Quick Actions for that module. You can from there 'Add' new Quick Actions.
- the JavaScript Field will be at the bottom of the form, and allow you to insert your JS code.
For more information on Setting Up a Quick Action, see