You must:
Select the NEW SCRIPT command from the menu at the top right of the screen:
In the New Script, dialog, select the 'Clear Down Handler' option.
Use the appropriate action cells to create the clear down logic (such as updating values in a data table or extended record fields used in VIEW historical reports).
Identify a script variable that is to receive a value from the main script when it clears down. For example, bHungUp.
Click the Start action cell and configure its properties as follows:
In the Input Variables' section's Name field, enter a string ID preceded by = for associating the variable with the equivalent variable in the parent script. (For example, =HangUpInMenu.) In the Value field, enter the user variable (bHangUp) that should receive the passed value, and then click ADD.
Repeat steps 3 to 5 for further variables that need to be updated when the main script clears.
Save and commit the script.
In the main script, click the Start action cell and then configure its properties as follows:
Select the cell's Enable a clear down handler option and then select the clear down handler script to call when this script clears down. In the Name field, enter the same string ID (preceded by =) that you used in the clear down handler script (=HangUpInMenu). In the Value column, enter the user variable (bHungUpInMenu) whose value you want to pass to the handler, and then click ADD.
Include other variables that need to be updated by the clear down handler when this script clears.
Save and commit the script.