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(id) | Returns the section label by ID. |
Section Row Count#section_row_count(id) | This variable returns the total number of rows in a repeatable section. |
Section Row Index#section_row_index | This variable returns the row index in a repeatable section. |
Section Row Number#section_row_number | This variable returns the row number in a repeatable section. |