The CreatorCon Call for Content is officially open! Get started here.

How to make list layout in red color

Alon Grod
Tera Expert

Hi,

I created a new style that makes the field in red when some condition is met. How can I make the field in red even though its empty ? Right now, the field is in red only when there is some value inside but i want to make it in red even though its empty.

Screenshot 2023-10-01 at 10.33.31.png

 

 

When there is a value in SLA Red:

Screenshot 2023-10-01 at 10.33.47.png

When there is not value in SLA Red:

Screenshot 2023-10-01 at 10.34.34.png

2 REPLIES 2

Danish Bhairag2
Tera Sage

Hi @Alon Grod ,

 

You can create 1 more style with the same configuration except the value field you should keep as empty for that style or u can add one more OR condition in your existing record which will be current.sla_red == ''. It will show red color even for empty value.// use proper backend name for sla red.

 

Please mark my answer helpful & accepted if it helps you resolve your query.

 

Thanks,

Danish

Riya Verma
Kilo Sage

Hi @Alon Grod ,

 

Hope you are doing geat.

 

IN your codition in style add additional OR condition saying current.field_name =="";

 

 
Please mark the appropriate response as correct answer and helpful, This may help other community users to follow correct solution.
Regards,
Riya Verma