OTHER Function

The OTHER function evaluates whether the template user selected the Other or None of the above option in a Multiple Choice variable.

The text returned by this function can be useful in a couple of different ways, such as a condition for an IF statement or for directly merging into the output document. Replace m:MULT_CHOICE_VAR with a multiple choice variable that has either the "Other" option specified, or the "None of the Above" option specified. 

Function name OTHER
Model OTHER ( m:MULT_CHOICE_VAR )
Parameters: The OTHER function requires you to replace only one parameter:

m: MULT_CHOICE_VAR

The function evaluates whether the use has selected "Other" or "None of the Above" to a Multiple Choice variable.
Result A true or false value

Example

For example, a template user is given a list of lending agents to choose from. If the user does not see the correct name on the list, they can select "Other" and specify the correct name. HotDocs then asks for the city in which the lending agent operates, as shown in the following script:

IF Lending Agent = OTHER(Lending Agent)

ASK Lending Agent City

END IF

In this next example, you want to create a list of company representatives. However, if the user doesn't select a company representative, you want the text No representative selected merged.

""

IF OTHER(Company Representative) = "None of the Above"

"No representative selected"

END IF

Download

After you download the example template, you can import the template to any workspace to see this example code in action.