in a calculated field (field_a) I have the following code PHP
if ((int)'{tm_allenamenti___gg_scad}'>=1) {$spoints = "Scaduto";}
else
if ((int)'{tm_allenamenti___gg_scad}'<=-7) {$spoints = "Attivo";}
else
$spoints = "In scadenza";
return $spoints;
and it works.
Now I would like that if the value of field_a = "expired" the text color is red
if the value of field_a = "active" the text color is green
if the value of field_a = "maturing" the text color is yellow
you can do this?
php or CSS ?
if ((int)'{tm_allenamenti___gg_scad}'>=1) {$spoints = "Scaduto";}
else
if ((int)'{tm_allenamenti___gg_scad}'<=-7) {$spoints = "Attivo";}
else
$spoints = "In scadenza";
return $spoints;
and it works.
Now I would like that if the value of field_a = "expired" the text color is red
if the value of field_a = "active" the text color is green
if the value of field_a = "maturing" the text color is yellow
you can do this?
php or CSS ?