Defining a Custom Interview Component
If you need control over the order HotDocs asks questions in an interview, you can create a custom interview component.
There are two parts to using a custom interview in your template:
- Create the custom interview component that contains all of your scripting.
- Specify a component file property that tells HotDocs to use the component when generating the interview.
To create a custom interview component
- Components elect Computation Variables New Component
- Variable name as long as it's specified in the Interview tab of the Component File Properties dialog box)
- OK
Once you have created the custom interview, you must specify a component file property that tells HotDocs to use the computation when it generates the interview.
Tell HotDocs to use the custom interview component when generating the interview
- Component Manager Component File Properties
- Interview Use custom interview
- Interview component
Now, HotDocs will use this computation to generate the interview.
If you are pointing several templates to a shared component file, but you want each template to use its own custom interview, at the Interview tab, clear Use Interview properties stored in the shared component file, select Use custom interview, and then specify the name of the interview computation in the Interview component field.
In a text template, if you select both Generate default interview and Use custom interview, HotDocs always uses the custom interview. That means that HotDocs only asks variables contained in the custom interview. For a form template, if you select both options, HotDocs presents the custom interview first and then includes any variables not in the custom interview, but contained in the default interview, at the end of the interview outline.