Change field color in Formulas

Post Reply
User avatar
elviseras
Posts: 180
Joined: 08 Feb 2017, 03:16
Name: Elvix Sampedro
Location: Galicia - Spain
Company Name: novaTEK

Change field color in Formulas

Post by elviseras » 01 Aug 2018, 10:45

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

User avatar
support
Site Admin
Posts: 1556
Joined: 19 Oct 2014, 18:22
Name: Sergey Kharchishin
Location: Russia, Evpatoriya

Re: Change field color in Formulas

Post by support » 01 Aug 2018, 14:09

What do you mean "not working"? Can you provide screenshot of listing where you display two formulas values and formula result?

User avatar
elviseras
Posts: 180
Joined: 08 Feb 2017, 03:16
Name: Elvix Sampedro
Location: Galicia - Spain
Company Name: novaTEK

Re: Change field color in Formulas

Post by elviseras » 01 Aug 2018, 21:29

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

User avatar
support
Site Admin
Posts: 1556
Joined: 19 Oct 2014, 18:22
Name: Sergey Kharchishin
Location: Russia, Evpatoriya

Re: Change field color in Formulas

Post by support » 01 Aug 2018, 22:00

Thanks, fixed documentation example to:

Code: Select all

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

Post Reply