Stylizing the Variable Editor in list view

Mark Cummins
Tera Contributor

Hello,

 

I'm wondering if it's possible to style the color of specific variables inside a variable editor. I know with normal variables you simply configure style. For example, if I wanted to change the background color of servicing department based on choice with a client script, how would I access the variables? 

1 REPLY 1

Samaksh Wani
Giga Sage
Giga Sage

Hello @Mark Cummins 

 

You need to use onChange() Client Script :-

 

var choice = g_form.getValue('servicing_department');
if(choice == 'IT'){
var e = gel("label.table_name.Field_Name");
e.style.backgroundColor = 'Color Name';
}

 

 

Plz Mark my Solution as Accept and Give me thumbs up, if you find it Helpful.

 

Regards,

Samaksh