Using a Multiple Choice Variable to Select One or More Conditional Regions
You can use a multiple choice variable to tell HotDocs which conditional regions to include in a final document.
Use a multiple choice variable to select one or more conditional regions
Step 1: Create the multiple choice variable that is used to select which conditional regions the user wants to include
- Open Component Studio.
- Click New and from the drop-down menu select Multiple Choice variable.
- Type a Name for the computation and select a Configuration (whether the template user is able to Select one item or Select multiple items in the interview).
- Use the Options tab to add a new option for each piece of content you want to make conditional.
Step 2: Make conditional regions that are based on the same multiple choice variable
- Open the template.
- Highlight the first piece of content you want to make conditional.
- In the HotDocs Field Editor, under Action, click Create a conditional region.
- Under condition type, click Multiple Choice Variable and click the drop down arrow in the field to select the variable you want to base your conditional region on.
- In the Value field, Use the drop-down arrow to select the option that corresponds to this first piece of content.
- Click Add Field. HotDocs places an IF/END IF instruction pair around your content.
- Repeat this process for each piece of content you want to make conditional based on this multiple choice option.