Page 1 of 1

Change field color in Formulas

Posted: 01 Aug 2018, 10:45
by elviseras
Hi,

In formulas and functions documentation (https://blog.rukovoditel.net/how-to-use ... functions/), in Formulas section, it is said that it is possible to change the color of the field according to its value in the following way:
Also functions can be applied in conditions:

if ([5]> 0, {12}, 0)
if ({1} = {2}, '<span color = "green"> In Stock </ span>'[, 'NO')

but this does not work and the color does not change ... Is it possible that there is some html syntax error in the example?

Many thanks in advance

Re: Change field color in Formulas

Posted: 01 Aug 2018, 14:09
by support
What do you mean "not working"? Can you provide screenshot of listing where you display two formulas values and formula result?

Re: Change field color in Formulas

Posted: 01 Aug 2018, 21:29
by elviseras
Hi Sergey,

Formula is working fine...What I want to say is that the example code in RK documentation to change the color of the result does not work. You can see it in the following images (since I have managed to work with html code of text style, but I would like to give it the same appearance as the rest of the RK values that change color)

With HTML text style code ( style="background:#acecc7" )
HTML_color_code_OK.jpg
With example RK documentation code ( color = "green" )
Doc_Example_ BADNOCOLOR.jpg
Regards

Re: Change field color in Formulas

Posted: 01 Aug 2018, 22:00
by support
Thanks, fixed documentation example to:

Code: Select all

<span style="color:green">In Stock</span>