Is there anyway to add a counter to the fields that are in a collection on a form?
You can do this in a table using {n} but in a collection this doesn't work.
Has anyone been successful in doing so?
Is there anyway to add a counter to the fields that are in a collection on a form?
You can do this in a table using {n} but in a collection this doesn't work.
Has anyone been successful in doing so?
=row() will work
I have placed this in Custom HTML as =row() and i have placed it as a default value and as a field name, and neither are working.
Can you be a little bit more specific
Use a single line or number field, and in the field configuration use =row() as the calculation.
I have placed this in the Calculations, so i will now need to hide this and then reference the var in the custom HTML i take it.
Is there a reason you are using an HTML field for this? If you just want the row number, use a read-only single line or number field.
I have a collection which needs to be distinguished from each row in the collection as there are lots of fields in this collection, the collection in question that i would like to number is populated by another collection on a previous page and will eventually be passing over variables to the collection to distinguish from one another.
IE Information for User =row() or Information for User =row()
For now i would like the collection to say collection 1 or 2 or 3 based on the row value.
If you're just trying to pass values from one collection to another, you could also do that with calculations.
For example,
=INDEX(Collection1.User,ROW())
Would retrieve the "user" value for the corresponding row of the first collection.
So if you put that calculation into a field in Collection2, it would automatically copy the corresponding value (i.e., user 1 would copy user 1, user 2 would copy user 2, etc.).