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

Question

Question

Collections with an incremental Label

asked on June 19, 2020

I have the need to have a collection for individual demographics of contacts, but without an identifying variable and need to have each of this collection element stand apart from the subsequent elements.  We need this to be labeled specifically ( Person 1, Person 2, Person 3) between each of those elements like so:

[Collection]

Person 1

Race radio buttons

Ethnicity radio buttons

Age field

 

Person 2

Race radio buttons

Ethnicity radio buttons

Age field

 

Person 3

Race radio buttons

Ethnicity radio buttons

Age field

 

[Add Another Person]

 

Is this possible at all?

 

0 0

Replies

replied on June 19, 2020 Show version history

You can add a field to the collection that is set to be readonly and use the following formula: you can remove the "Person " & part, and simply name the field itself "Person" if you like.

 

="Person " & ROW()

 

collection-num-2020-06-19_2310.png
1 0
replied on June 22, 2020

Thank You,  that works. 

I notice in the LF Admin Guide help that the ROW() formula specifies that it returns the row number of the cell in a table, which I wouldn't think of using it in a collection, unless collections are some type of specific style table?

0 0
replied on October 23, 2020

Collections are not a styled tables, but they are treated similarly as they hold a set of fields repeated in rows. The variables are stored similar to tables' variables where they hold multi-value fields. Logically each record set of fields would represent a row. 

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

Sign in to reply to this post.