how to change default text in work notes field
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-14-2022 03:45 AM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-14-2022 03:49 AM
Hello,
I don't think you can change that one, but you can make entry in 'sys_ui_message' table to have alternate message in place of default one but not sure if that works. Most likely it's not possible.
Regards,
Musab
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-14-2022 03:50 AM
Hi @Chaiatnya ,
If you right click on both fields and go "Configure Dictionary" you then go to the "Default Tab" and set in a default value. In the below, when I create a new record from the Incident Table, the test appears.
If I then submit this record, the "This is a test" is recorded as an additional comment in the activity tra
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-14-2022 04:15 AM
Hi
As per my understanding you want to change the 'help text' of "work notes" and "additional comments" on incident form.
If yes then 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";
}
in case above code not worked for you then try following code:
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";
}
I don't know if there is any other way possible, so just suggesting what I could think of.
Hope this helps!
mark my answer correct & helpful if it helps to resolve your issue.
Thanks
Rajesh.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-24-2023 06:57 PM
Hi Kri
OOTB, there are two Script Includes called "Modify Comments Label", open the one on the Task table and edit as required.
function onLoad() {
if (!g_user.hasRole("itil"))
return;
if (!g_form.hasField('comments'))
return;
var labelText = g_form.getLabelOf('comments');
if (labelText.substring(labelText.length-1) == ':')
labelText = labelText.substring(0, labelText.length -1);
labelText += new GwtMessage().getMessage(' (Customer visible)');
g_form.setLabelOf('comments', labelText);
}