Numbering repeatable elements using javascript

Dynamic form elements are numbered consecutively

Important: This demo form needs an additional script to work properly. You can download it using the following button. Pay attention to the location to find the file afterwards.

Important: Now it is necessary to upload the file of the script to Files & Templates of your FORMCYCLE environment. To do this, please follow the steps in the picture. At 4. it is important that you locate the location of the previously saved script to open it.

Sometimes it makes sense to display a consecutive number for dynamic elements. Instead of storing the numbering permanently, it is possible to generate them through JavaScript. The required function is called addRow / delRow Event (further information at FORMCYCLE help).

Numbering in the input field

Enable JavaScript to see the sample code

Numbering in the text

<numbering>

Enable JavaScript to see the sample code

You can also write the numbering on the label of a dynamic form element. This is described in another demo form.