Make the single line text field as Red

vinuth v
Tera Expert

Hi All,

 

Is this possible to make the single line text field in Red color?

If Yes, please any one suggest how to make the single line field text color in Red.

 

Thanks,

Vinuth

6 REPLIES 6

Vishwa Pandya19
Mega Sage

Hello,

 

You will need to go to System UI -> Field Styles.

Create a new entry, for example below:

VishwaPandya19_0-1715674386142.png

Result:

VishwaPandya19_1-1715674408982.png



If my answer has helped you in any way please mark it as correct or helpful.

Hi @Vishwa Pandya19 

For particular form I want the variable in Red color, not globally

 

Thanks,

Vinuth

Try client script in that case.

 

var myVar = $('sys_display.' + g_form.getControl('your field name').id);

 

myVar.setStyle({color: "red"});

 

If my answer has helped you in any way please mark it as correct or helpful.

@Vishwa Pandya19 

I tried with the above script but it's not working as expected.