Setting script triggers for layouts
You can set up script triggers to activate when actions are performed on a specific layout.
To add, change, or delete a script trigger for a layout:
1.
2.
In Layout mode, select a layout.
3.
Click Layout Setup Layout Setup button in the layout bar.
4.
In the Layout Setup dialog box, click the Script Triggers tab and double-click the event that you want to trigger the script.
5.
6.
(Optional) To specify a script parameter, type the text you want. Or, click Edit and use the Specify Calculation dialog box to build a more complex parameter, then click OK.
7.
Click OK to close the Specify Script dialog box.
8.
9.
A badge  Layout trigger badge on a layout appears in the lower-right corner of a layout on which you set a layout script trigger. If you don’t see the badge, choose View menu > Show > Script Triggers. In the Manage Layouts dialog box, you see Layout script trigger badge in Manage Layouts dialog box next to the name of a layout for which a layout script trigger is set.
Script triggers set for one layout do not apply to other layouts. To include a script trigger on multiple layouts, repeat these steps on each layout.