Buy Now
Sign in

Chronoforms6: how to generate unique classes for rows in Grid Area in a Repeater Area

Erik66 , November 07 at 14:01
E
Erik66
Futher to my previous post (https://www.chronoengine.com/forums/posts/t106316/chronofomrs6-read-data-from-database-table-and-display-a-list-of-the-contents) I am curious as to how to add a unique class or ID to rows in the output of a list of records from a database table. I am using the Repeater Area with a Grid Area to show the individual rows with data. In the rows, the individual fields are assigned an ID that contains the row number with this code:
fieldname{var:data-provider-name.key}
However, if I add this same code to the Grid Area "Class", the result is always '1' so this can not be used to assign unique numbers to the rows in the Grid Area.​
​​
​What code can be used, and where (Grid Ares, Fields,etc.) to add unique classes or ID's to rows in a Grid Area?​
​​
​Many thanks in advance,
Erik
healyhatman
Why would you assign it to the class, and not to the id / name of the field?
Web developer at SkySpider.com.au
I don't work for ChronoEngine but I do accept donations paypal.me/healyhatman
E
Erik66
I'm happy with whatever works. As long as I can assign styling on .individual rows and/or fields