Expand my Community achievements bar.

How to conditionally format alternating background color for rows in table in Livecycle form


Level 1


I'm new to livecycle and javascript and I've made a Livecycle form that has a table with multiple rows. I also have buttons that change the format of the table to show only certain rows. Users would be able to reset the rows as well with another button. My issue is that I would like the rows to alternate background color but I don't know how to do this with the buttons because removing or adding rows would likely result in multiple rows of the same color next to each other. Is there a way to base the color of a row on the row above it? Or another way in javascript to do this?



0 Replies