The HotDocs Computation Archive
Get Extra Help

0071 - Clear a Repeated Dialog

Description:

How to completely clear a repeated dialog (all variables, all levels).


• Code •

ASK NONE
REPEAT RepeatedDialog
   SET VariableName TO UNANSWERED
END REPEAT
ASK DEFAULT

• Explanation •

This script is used to clear (SET TO UNANSWERED) any or all of the variables in a repeated dialog. It clears the variables on all repeat levels. It will effectively clear the whole dialog.

The ASK NONE makes sure that HotDocs does not display the dialog to be cleared. The REPEAT then runs through the dialog, and the SET ... TO UNANSWERED is used to clear variables in the dialog. You should duplicate this line for each variable in the dialog. Finally, the ASK DEFAULT returns the ASK mode to whatever the user selected when they began assembly.