Overview: Scripting and Computations

From HotDocs Wiki

Jump to: navigation, search

Computation variables and dialog scripts could be considered the "brain" of a HotDocs template. Without them, templates simply find and replace variable text with answers. By adding computations to your templates, you can automatically calculate number, date, true/false, and text values based on answers a user enters and merge these values into assembled documents.

Dialog scripts can also make the interview more interactive—as the user answers questions, other questions may appear or disappear. This way, the user answers only questions applicable to his or her situation.

The articles in this section describe some of the many ways computations and dialog scripts can be used in HotDocs templates. They are organized by task or outcome, and most articles include sample scripts you can adapt for use in your own templates.