The following line, inserted in an onRecord event, will change the color of the background, based on the value of DAFF33
sc_field_style({colorName}, ‘#DAFF33’, ‘15px’, ‘#FF6666’, ‘Arial, sans-serif’, ‘bold’);
I would like to change the color row by row for the field “colorName”, by reading it in from a table.
I have tried :
$col = “#DAFF33”;
sc_field_style({colorName}, $col, ‘15px’, ‘#FF6666’, ‘Arial, sans-serif’, ‘bold’);
but it does not work
How can I use a variable to change the BG of that field, on a row by row basis.?
The photo attached is what it should look like