How to set/change field value color in red by client script?

Thousif S N2
Tera Contributor

I have  a client script from where iam passing some value,

var test = 'please DO NOT click'; 

so now in the above string i want 'DO NOT' should displayed in red color?

how this can be done?

  

3 REPLIES 3

Prateek kumar
Mega Sage

Please take a look at below thread:

https://community.servicenow.com/community?id=community_question&sys_id=c3d6cba5db1cdbc01dcaf3231f96...


Please mark my response as correct and helpful if it helped solved your question.
-Thanks

Thanks for the response, actually i want to store this value into description field  i am not trying to alert a msg here.

Priyanka Vasant
Tera Guru

Hi,

Find the below link that might help you.

Change color of field Text

 

mark helpful or correct based on impact.

Regards,

Priyanka