This tutorial demonstrates how to add row numbers to each repeater in a 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.
| Variable | Name | Description | Usage |
|---|---|---|---|
#section_label("section_id") | Section Label | Returns the section label. For more information about this variable, click here. | Client-side & Actions |
#section_row_count("section_id") | Section Row Count | Returns the total number of rows in a repeatable section. For more information about this variable, click here. | Client-side |
#section_row_index | Section Row Index | Returns the row index in a repeatable section. For more information about this variable, click here. | Client-side |
#section_row_number | Section Row Number | Returns the row number in a repeatable section. For more information about this variable, click here. | Client-side |