Creating a chekbox field with increasing numbers as value

Hi

I have 2 fields. The first is a checkbox and the second a multivalue textfield.

I want the first field ( checkbox) to have the same amount of checkboxes as the amount of items in the second field. The values of the checkboxes must all have different values.

I am trying to achive that by doing the following:

I have the following formula for the values of the checkboxes in the first field:

Temp := 0;

@Transform(TestList2; “x”; @Text(Temp + 1))

Unfortunately this results in all checkboxes having the same value (namely “1”). This is not what i want. I thought all checkboxes would have 1 number higher then the previous ( namely 1,2,3,4,etc.).

What must I do to achieve what I want?

I hope it is clear what I want.

Regards

Subject: Creating a chekbox field with increasing numbers as value

Don´t bother I already found the answer!