HotDocs Models: other( mult_choice_var )

Placeholder Replace With
mult_choice A Multiple Choice variable that has either the Other option specified, or the None of the Above option specified.

This expression determines whether the user has chosen the Other option of a Multiple Choice variable and, if so, returns the text entered in the Other field. It can also be used to test whether the user has selected the None of the Above option.

For example, a user is given a list of lending agents from which to choose. If the user doesn’t see the correct name on the list, he or she 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 LendingAgent = other( LendingAgent )

ask LendingAgentCity

endIf

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(CompanyRepresentative) = "None of the Above"

"No representative selected"

else

format(CompanyRepresentative, "a, b, and c")

endIf