how to change default text in work notes field

Chaiatnya
Tera Contributor

how to change default text in work notes field

 

Kri_0-1665744283226.png

 

4 REPLIES 4

Musab Rasheed
Tera Sage
Tera Sage

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.

Please hit like and mark my response as correct if that helps
Regards,
Musab

Community Alums
Not applicable

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.

 

SandeepDutta_0-1665744651675.png

 

 

SandeepDutta_1-1665744651679.png

 

 

If I then submit this record, the "This is a test" is recorded as an additional comment in the activity tra

Rajesh Chopade1
Mega Sage

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.

Community Alums
Not applicable

Hi Kri

OOTB, there are two Script Includes called "Modify Comments Label", open the one on the Task table and edit as required.

JamesBustard_0-1674615355624.png

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);
}