How to put text inside the Additional Comments text box on the incident form
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-16-2020 11:06 AM
We'd like to put text inside the Additional Comments text box on the incident form to tell the tech to put comments there to communicate with the customer. We have help text, but people don't necessarily think to hover over that field. I thought about a template, but it should be there for everyone, not dependent on someone adding it.
I've searched, but the results I'm finding have more to changing the name of the field or adding the hover text.
Here's an example that was done by a previous contractor on the Work Notes field:
- Labels:
-
Incident Management

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-16-2020 11:19 AM
You can try adding a placeholder to it
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";
}
Other way is to use DOM Manipulation
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 doing DOM Manipulation which is not a best practice so I don't recommend the second approcah.
Regards
Pranav
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-15-2021 12:53 AM
Thanks alot bro, it helped.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-30-2022 06:36 AM
Hi Pranav,
Thank you so much for the above code working as expected i have one query is it also work in agent work space?
Regards,
Susmitha.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-16-2020 11:21 AM