The HotDocs Computation Archive
Get Extra Help

0115 - Ask a Variable

Description:

How to force a variable to be asked, even if it is already ANSWERED.


• Code •

ASK Variable
 
 
Example (mimics DEFAULT):

SET DateVar TO TODAY
ASK DateVar
DateVar

• Explanation •

It is permissible to use ASK with variables (not just dialogs). If a variable has already been answered, using ASK Variable is a good way to force the variable to be asked again, allowing you to change or keep the current answer. Using ASK Variable will also force a variable set to "Ask only in dialog" to be asked.

The example is a mimic of DEFAULT. It presets DateVar to today's date then forces the variable to be asked. The user can either accept today's date or enter a new date. The chosen date value is then inserted into the document.

 

• Contributors •

LegalCS