How to edit grey color text in text boxes?

prasannakumard
Tera Guru

Hi Team,

We need to update the Grey color text on fields. Please fin the below screenshot for the same.

find_real_file.png

Please let me know how can we update the text and where it can be customized.

Thanks & Regards,

Prasanna Kumar

7 REPLIES 7

snehabinani26
Tera Guru

Shishir Srivast
Mega Sage

Hi Prasanna,



With the help of Client script able to change the color of the text.



var myVar = $('sys_display.' + g_form.getControl('cmdb_ci').id);


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



Please check these



http://wiki.servicenow.com/index.php?title=Defining_Field_Styles#gsc.tab=0 Change color of field Text


Change color of field Text


Hi Sneha and Shishir, Thank you for your quick response.



Actually, the requirement is before entering any value into fields, we need to show some text with Grey color. Means any time the text is visible on the field and while entering it'll go.



First time it'll be like this:


find_real_file.png


Next it'll be like this while entering comments:


find_real_file.png



Means the grey color will stick to any time, only when before entering any values it will go.



Please provide any helpful solution for the same.



Thanks & Regards,


Prasanna Kumar


Hi Sneha and Shishir,



Please see the below URL for place holder updates and customization.



Support for HTML 5 placeholder attribute



Thanks & Regards,


Prasanna Kumar