Worknotes default text

Kearney
Tera Contributor

I am trying to set the worknotes to have the default placeholder text " Action/What you did: Next Steps: "
which suggests what content the user should write in the work_notes section on the incident form however the text that shows up within the work notes box seems completely dependent on the label is there any way to change the placeholder text without also changing the label?

function onLoad() {
	if (!g_user.hasRole("itil"))
		return;

	if (!g_form.hasField('work_notes'))
		return;
	var work_notes = g_form.getControl('work_notes')
	var labelText = g_form.getLabelOf('work_notes');
	if (labelText.substring(labelText.length-1) == ':')
		labelText = labelText.substring(0, labelText.length -1);

	labelText += new GwtMessage().getMessage(' \nAction/What you did:\nNext Steps: ');
	g_form.setLabelOf('work_notes', labelText);
}

 

1 REPLY 1

Robin John
Kilo Sage

For native UI a solution is provided here. (not recommended as it involved DOM manipulation)

For agent workspace see here