HIDE ALL; HIDE VAR; SHOW ALL; SHOW VAR

PlaceholderA marker in an instruction or expression model that indicates where a value must be substituted. This value must be a literal value or a variable. Instruction and expression models help the developer use the correct syntax in a script. Replace With
VAR A variableA component that is used to represent changeable text (such as names, dates, numbers, etc.) in the template. Types of variables include Text, Date, Number, True/False, Multiple Choice, Computation, and Personal Information. used in an answer source

These instructions, which are used in a dialogIn template development, represents the component in which the developer groups variables and other components. In document assembly, represents the group of questions in the Interview tab of the assembly window where users enter their answers. scriptOne or more instructions and/or expressions that generate a value or execute some kind of procedure., control whether the userThe customer, client, or person who assembles documents from templates. (See also template developer.) is able to see variables in a dialog. The HIDEAn instruction used in a dialog script to hide variables in the dialog. (See also SHOW.) Usually this instruction is conditioned so that questions in the dialog hide and show dynamically, based on answers the user enters. ALL instructionA command in a script or template that performs a special task, such as inserting a template or asking a dialog at a specific place in the interview. hides all variables in the dialog, while SHOWAn instruction used in a dialog script to show variables that have been hidden in the dialog. (See also HIDE.) Usually this instruction is conditioned so that variables hide and show dynamically, based on answers the user enters. ALL reveals the variables again. Likewise, HIDE VAR hides a single variable, and SHOW VAR reveals the variable.

In the following example, a certain estate planning templateA word processor or form document that has been converted to HotDocs format so that it can be automated. When in template format, changeable text in the template can be replaced with variables. Other instructions can be added as well, such as instructions that create lists, condition text, and insert other templates. may be used for both wills and trusts. The initial dialog uses a Multiple Choice variable called DocumentThe file that is created after a template has been assembled. Type to ask which type of document will be assembled. Then, depending on how the user answers the variable, HotDocs asks either the executor/testator names or the trustee/grantor names:

HIDE ALL

SHOW Document Type

IF Document Type = "Will"

SHOW Executor Name

SHOW Testator Name

ELSE IF Document Type = "Trust"

SHOW Trustee Name

SHOW Grantor Name

END IF

You should not HIDE or SHOW a variable in a repeated-as-spreadsheet dialog based on another variable in the same dialog. When you use HIDE or SHOW in a spreadsheet dialog, the entire column is shown or hidden. Attempting to do this may produce unexpected results.