Expand my Community achievements bar.

SOLVED

Autonumbering in Table

Avatar

Former Community Member

I have created a table which allows users to add additional rows as they require.

what I would like to do is in column 2 of row 1 enable the user to enter a number e.g. 1.1 and then when they click add additional row, row 2 would show 2.1 in column 2.

What javascript woould I need to add to enable thi.s

Many thanks

1 Accepted Solution

Avatar

Correct answer by
Level 7

create a form variable and set it to 1.

In the calculate event of the field you want to autocalculate put in Formcalc:

$ = Concat([name of your variable],".1")

then in the add row button click event put:

[name of your variable] = [name of your variable] + 1

View solution in original post

1 Reply

Avatar

Correct answer by
Level 7

create a form variable and set it to 1.

In the calculate event of the field you want to autocalculate put in Formcalc:

$ = Concat([name of your variable],".1")

then in the add row button click event put:

[name of your variable] = [name of your variable] + 1