There are four repeatable sections properties that can be accessed through calculations. As with other properties, the repeatable section properties are accessed through a calculation within a number field.
- For more information on number fields, click here.
- For an overview of calculations, including how to set up a number field to perform a calculation, click here.
These calculations can be performed using a number field either inside the repeatable section or in any subsequent section (repeatable or otherwise).
The four repeatable section properties available are:
In the examples that follow, @123 will be used as a generic field reference code for a field within a repeatable section.
@123.Repeat
- Returns the repetition number of a given field in a repeatable section.
- Values returned are in the range from 1 to RepeatCount.
- Values increase by 1 (starting at 1) each subsequent repetition.
@123.RepeatCount
- Returns the total number of repetitions in the repeatable section.
- This updates as the smart online form is answered as repetitions are added and removed.
- Fields in all repetitions will return the same value.
@123.MinRepeats
- Returns the minimum number of repetitions specified in a repeatable section’s properties in the form builder (i.e. "Minimum Number Of Repetitions" below).
- Fields in all repetitions will return the same value.
@123.MaxRepeats
- Returns the maximum number of repetitions specified in a repeatable section’s properties in the form builder (i.e. "Maximum Number Of Repetitions" below).
- Fields in all repetitions will return the same value.