Repeated Dialog Overview

A Repeated Dialog is a type of dialog that a template user can answer multiple time in an interview to create a list of answers.

For example, if you wanted to create a list of a clients children you could use a repeated dialog to allow a template user to enter the details for as many children as needed.

In this topic Hide

  1. Common Tasks
  2. Types of repeated dialogs
  3. Dialog scripts on repeated dialogs

Common Tasks

Types of repeated dialogs

Series

Appears as a regular dialog to with an answer field for each variable. When the template user has answered the questions in the first iteration of the dialog, they can either click the Add Another button to add another iteration of the dialog, or they can click Next to move to the next dialog in the interview.

Spreadsheet

Appears as a spreadsheet with a column for each variable on the dialog. When the template user has filled in the first row of the spreadsheet, they can either click into the next row to add another iteration of the dialog, or they can click Next to move to the next dialog in the interview.

Dialog scripts on repeated dialogs

You can add dialog scripts to any type of dialog but for repeated dialogs it's important to remember that the script runs every time the template user adds another iteration.

If you are using a dialog script that runs every time the template user starts a new iteration of the dialog, although you can see an initial blank iteration in the interview outline from the beginning of the interview, that script does not run for the first time until the template user navigates to the initial iteration. Then it runs every time the template user creates a new iteration by clicking the Add Another button on a series dialog or starting a new line in a spreadsheet dialog.

This behavior is different to previous versions of HotDocs where a first iteration was created as soon as the interview launched.