javascript for conditional formatting of table row

Avatar

Avatar

MikeTGates

Avatar

MikeTGates

MikeTGates

10-08-2009

I have a table on one of my Livecycle forms which has rows that need to be conditionally formatted. A calculation involving the values of two of the cells should determine the background color of the cell. I have tried to implement this, but my lack of experience with the Livecycle javascript API is keeping me from being able to get anything out that doesn't just report "Syntax Error" (of course without saying what is invalid...I find Javascript development inside the workbench script window to be extremely frustrating).

This seems like something that would be very common to do in a table, so I was hoping someone could post their script code so I could take a look at it. I should also mention that the rows are repeating rows, and are based on XML data in an attached datasource.

Thanks,

Mike

View Entire Topic

Avatar

Avatar

MikeTGates

Avatar

MikeTGates

MikeTGates

11-08-2009

I'm not sure how to post a sample here, buts its a very simple thing I'm trying to do:

I have a table designed in Livecycle Form Designer.

I want the rows of the table to be, say, red when a specific cell on that row has a certain value.

Otherwise, I want the rows to be white (the default).