You are viewing limited content. For full access, please sign in.

Discussion

Discussion

Count in Collection in Forms

posted on December 10, 2019

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?

0 0
replied on December 10, 2019

=row() will work

6.4.1
0 0
replied on December 10, 2019

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

0 0
replied on December 10, 2019

Use a single line or number field, and in the field configuration use =row() as the calculation. 

1 0
replied on December 10, 2019 Show version history

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.

0 0
replied on December 10, 2019

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. 

0 0
replied on December 10, 2019

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.

0 0
replied on December 10, 2019

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.).

1 0
You are not allowed to follow up in this post.

Sign in to reply to this post.