The HotDocs Computation Archive
Get Extra Help

0029 - Change the ASK Mode

Description:

How to change between ASK modes.


• Code •

ASK ALL
ASK UNANSWERED
ASK NONE
ASK DEFAULT

• Explanation •

You can control the ASK mode by placing any of the above instructions in a computation. Moreover, you can change the ASK mode as often during assembly as you'd like. Note that the ASK DEFAULT instruction returns the ASK mode to whatever the user selected when they began the assembly.


•  •  •  •  •  •  •

A Warning for Older Versions of HotDocs
(From the HotDocs-L)

After a lot of mystification, trial and error, I seem to have discovered that the commands ASK NONE, ASK DEFAULT, etc. take effect in computations (or templates) regardless of whether or not they are placed within conditional statements. For example, I was trying to set up a test mode which would invoke ASK NONE only when I set the computation variable "System test" to FALSE:

IF Test-b = FALSE
    ASK NONE
END IF

However, to my surprise I discovered that the ASK NONE command takes effect regardless of whether Test-b is TRUE or FALSE. This also explained some strange behavior I had noticed previously in some templates where I changed between ASK NONE and ASK DEFAULT a number of times.

In short, HotDocs executes every ASK NONE/ALL/DEFAULT instruction in the computation in order from top to bottom, regardless of whether they are contained within IF blocks. Note that the IF blocks still function predictably as to the rest of the computation.

 

• Contributors •

Lee Knight
Consultant
(619) 255-4986
(Home Page)