Setting script triggers for layouts
2. In Layout mode, select a layout.
3.
4. In the Layout Setup dialog box, click the Script Triggers tab and double-click the event that you want to trigger the script.
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.
9. Click OK.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.