This tutorial demonstrates how to add row numbers to repeatable sections.
Demo
Tutorial
- Create a repeatable section by checking the Repeatable setting in a section.
- Add a Text Editor field to the repeatable section.
- Enter the following in the content of the Text Editor field: Row
#calc(#section_row_number)
The #calc
variable tells WS Form to keep the #section_row_number
variable up to date each time the repeatable section row count changes.
Other Section Variables
In addition to #section_row_number
, the following section related variables can be used.
Name / Variable | Additional Information |
---|---|
Section Label#section_label("section_id") | Returns the section label. For more information about this variable, click here. |
Section Row Count#section_row_count("section_id") | Returns the total number of rows in a repeatable section. For more information about this variable, click here. |
Section Row Index#section_row_index | Returns the row index in a repeatable section. For more information about this variable, click here. |
Section Row Number#section_row_number | Returns the row number in a repeatable section. For more information about this variable, click here. |