Parker,
I do something like this a lot, and I've found the following to be reliable:
1. In the browse, on the field you want to color, on the Conditional Tab, set the Condition like this:
Condition: LOC:variablename = 'G'
CSS field: 'greenback'
I often use multiple color options depending on what I am testing for. So, I would enter a second entry on the Conditional Tab:
Condition: LOC:variablename = 'Y'
CSS Field: 'yellowback'
As Bruce always warns, remember CSS is case sensitive.
2. Then, on the browse, I embed some code to set the LOC:variablename:
3 Inside Browse Loop
5. Before Table Rows
Put your code to test whatever is relevant to you and set the LOC:variablename field's value (to 'G' or 'Y' in my example).
3. Add the styles to your custom.css file:
.greenback {
color:black;
background: #A9F5A9 !important;
}
.yellowback {
color:black;
background: #FFFF66 !important;
}
Make sure you run the gzip and make sure you update the users Styles and Themes folder. I didn't realize that the Themes folder has to be updated.
Hope that helps a bit. While I do the browse coloring on a cell (column) by cell basis, I understand that you can also do it on a row by row basis, but I don't do that. But, maybe this will help move you along in your project.
Mike Springer