Forum
Calc Builder Support
Calc Builder supportForums
No se permite escribir sin estar logado. Por favor, login
Re: Change color depending on result 26.08.2017 09:20
Hi,
please note the forum has some character restrictions due to security reasons, that's why you see the content is incomplete. We assume you want to change dynamically the color of one output section, you can achieve this applying a dynamic style at the output, for ex:
td style="color:##resultcolor##"
and then you can 'calculate' the $resultcolor at the code section, using an 'if' structure:
if($calculatedresult>=6){
$resultcolor="#308B30";
}
else{
$resultcolor="#801515";
}
Hope this helps, you can place a ticket at the helpdesk in case you need further help, there we can share code without restrictions.
Regards
Moonsoft Team
www.moonsoft.es
please note the forum has some character restrictions due to security reasons, that's why you see the content is incomplete. We assume you want to change dynamically the color of one output section, you can achieve this applying a dynamic style at the output, for ex:
td style="color:##resultcolor##"
and then you can 'calculate' the $resultcolor at the code section, using an 'if' structure:
if($calculatedresult>=6){
$resultcolor="#308B30";
}
else{
$resultcolor="#801515";
}
Hope this helps, you can place a ticket at the helpdesk in case you need further help, there we can share code without restrictions.
Regards
Moonsoft Team
www.moonsoft.es