How to add placeholder for work notes & additional comments?

Rahul63
Tera Contributor

I have added placeholder by writing client script but script only works for new record. Not for the old once or also for any record after created. SO how can I make this script work for new record and old record also?

onload script - 

function onLoad() {

var workNotes = g_form.getControl("work_notes");
if(workNotes) {
workNotes.placeholder = "Internal Notes for ITIL users. Not visible to customer.";
}

var comments = g_form.getControl("comments");
if(comments) {
comments.placeholder = "Shared with customer.";
}

}

 

find_real_file.png

find_real_file.png

8 REPLIES 8

dmathur09
Kilo Sage
Kilo Sage

Hi Rahul,

You can go to the dictionary of the field and put the comments in the default value of the field.

Regards,

Deepankar Mathur

Its also not working. Default value is showing in the text format not like  like as always.

Sajilal
Mega Sage

Hello,

Please check this Link

Please mark helpful/correct if you are ok!

Thanks,
Saji

Ankur Bawiskar
Tera Patron
Tera Patron

Hi,

any other script is setting the placeholder text?

Regards
Ankur

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader