Working with Repeat Spans in Author Online

The Repeat Span in Contract Express allows you to replicate a section of text or variables in a document based on a specified number or list. This is particularly useful when you need to include multiple entries, such as listing directors or companies.
The easiest way to use a repeat statement is in its simple form:
Repeat
whole-number-variable
where a
whole-number variable
is typically just a question variable asking how many of something there are, and which determines how many times the span will be repeated in the generated document.
To insert a repeat span, click on the variable in the document that you want to repeat. Then, click on
Insert Span
and choose the
Repeat
option from the menu. You can either create a new variable or select from existing variables that support whole numbers, multi-select, or computation variables.
From the example below, we are updating Seller names:
When the option
Use buttons in questionnaire to add repeats
is selected, an
Add
button appears, allowing the user to add rows interactively in the questionnaire.
From the More Options menu, you can manage individual fields:
  • Insert
    adds a new input field before the current one.
  • Add
    creates a new input field after the current one.
  • Remove
    deletes the selected field.
If the option is unchecked, the repeat is controlled by a question. For example, the user may first be asked for the number of Sellers, and the form will then render that many input fields automatically. The controlling value must be either a whole number, a list, or a computable variable, as these define how many repeats to generate.
note
Note:
You can modify the
Seller Number
value anytime while working on the details.
Advanced mode
Enable the
Advanced mode
toggle to manually enter a logical expression or a whole number variable with repeats.