Creating a Variable Using Component Studio
If you take the time to plan your HotDocs template authoring projects, most often when you create a variable, you do so from within Component Studio.
You can also use the HotDocs Field Editor to create a variable while adding a placeholder field.
Create a variable
- Open Component Studio.
- From the Component Studio ribbon, click New; then under Variables, select the type of variable you want to create.
- Type a Name for the variable.
- If, in the step above, you selected a Multiple Choice variable, then from the Configuration drop-down, choose whether you want your template users to be able to Select One Item or Select Multiple Items.
- If, in the step above, you selected a selection variable (Single, or Multi Select), you can choose an existing option source or create a new one.
- Click OK.
- (Optional) Edit any properties you want on the tabs of the individual variable editors:
- Text Variable Editor
- Number Variable Editor
- Date Variable Editor
- True/False Variable Editor
- Single Select Variable Editor
- Multi Select Variable Editor
- Table Variable Editor
- Multiple Choice Variable Editor
- When you finish, click Save.
- (Optional) Open your template and select the text you want to replace, or position the cursor where you want to add a placeholder field that references your variable.
If you use Component Studio to create several components, you can dramatically benefit from using the Fast Field Insertion tool to add placeholder fields to your template.
See Also