How to add placeholder for work notes & additional comments?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-26-2022 01:10 AM
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.";
}
}

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-26-2022 01:12 AM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-26-2022 01:13 AM
Its also not working. Default value is showing in the text format not like like as always.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-26-2022 01:50 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-26-2022 02:19 AM
Hi,
any other script is setting the placeholder text?
Regards
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader