This topic is locked
[SOLVED]

Changing the background of the entire row in the database after selecting a specific value

3/5/2022 10:31:17 PM
PHPRunner General questions
kanclerz author

Hello I would like to change the cell background depending on the value selected. I even found an interesting and helpful tutorial at https://xlinesoft.com/phprunner/docs/conditional_formatting.htm
However, I have a question whether it is possible to change the background of the entire row permanently after selecting a certain value, e.g. YES or NO. I found something similar in the tutorial https://www.youtube.com/watch?v=ch_cADcTnP4&t=558s but there is just an example where the color of the entire line changes when you hover the mouse over the record, and I mean that this value should be permanent

D
DealerModulesDevClub member 3/6/2022

Hello,

You can try adding to your list page / events / List page: After record processed area :

if($data["your_field_name"]=="NO")
$record["css"]='background:red';

Everything is case sensitive including your NO or No.
Change your_field_name on the first line above to your field name in your list.

Hope this helps,

Paul

kanclerz author 3/6/2022

thanks, it works