Change the "help text" that displays in the text boxes for Work Notes and Additional Comments in sctask
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-19-2019 07:02 AM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-19-2019 05:31 PM
Hi Tom,
I don't think there is an out of the box way for adding placeholders to form fields ( I know it is possible in Catalog Item variables by adding example text value to those variables). The only way I could think of is using DOM Manipulation to modify the placeholder attribute for those fields.
The best way would be:
var workNotes = g_form.getControl("work_notes");
if(workNotes) {
workNotes.placeholder = "New Placeholder for Work Notes";
}
var comments = g_form.getControl("comments");
if(comments) {
comments.placeholder = "New Placeholder for Additional Comments";
}
But that doesn't seem to work for me. It could be because these work notes field and additional comments are a set and a part of the activity log, they are not rendered the way other normal fields are rendered.
So, I had to try :
var workNotes = gel("activity-stream-work_notes-textarea");
if(workNotes) {
workNotes.placeholder = "New Placeholder for Work Notes";
}
var comments = gel("activity-stream-comments-textarea");
if(comments) {
comments.placeholder = "New Placeholder for Additional Comments";
}
Which works, but since it is relying on the ID of the element and then doing the DOM Manipulation, it could break with future releases as the HTML structure could change.
I don't know if there is any other way possible, so just suggesting what I could think of.
Hope this helps!
Cheers,
Manish
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-27-2019 11:51 AM
Manish - Thanks for the reply!!
Since we were looking to change the placeholder for SCTASK, you have confirmed my suspicion that we cannot restrict it to SCTASK, but every form that uses Work Notes and Comments will be affected
Thanks - Tom

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-27-2019 11:55 AM
Hi
I guess, you can change the text, which maybe is in the Messages table, prepared for translation.
Just check, if you find the text shown there. If not, just create it, and change the language text, to what you want.
Maybe that works.
Let me know if that answered your question and mark my answer as correct and helpful, please. Thanks
BR Dirk

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-27-2019 12:08 PM
Hi there,
The example/help text shown, is actually just the same as the label of the field. If you change the label of the field, you'll see this instantly. If you only want this for sc_task, and not other task extended: just add an additional label for tabel sc_task.
If my answer helped you in any way, please then mark it as helpful.
Kind regards,
Mark
---
Kind regards,
Mark Roethof
Independent ServiceNow Consultant
10x ServiceNow MVP
---
~444 Articles, Blogs, Videos, Podcasts, Share projects - Experiences from the field