Comments and worknote field on service operations workspace is not clearing

Shruti Bhosale
Tera Contributor

Comments and worknote field on service operations workspace is not clearing.

 

When i add any test in comments and work note in SOW. click on save it is adding that comment in ticket but also the text is not getting clear in comments and work note field ServiceNow

1 REPLY 1

raj chavan
Tera Guru

This might  actually be a expected behavior in Service Operations Workspace, not a bug.

 

In Workspace, Comments and Work Notes are journal fields, and after you click Save, the text you typed stays in the input box. It still gets added to the ticket’s activity stream, but the field itself doesn’t auto-clear like it does in Classic UI.

 

Most of the time, this happens because Workspace keeps the last entered value on the client side so the user can quickly edit or resend it.

 

If you want it to clear after saving, you can add a small Workspace Client Script to blank out those fields on submit.

 

For example:

 

function onSubmit() {
   g_form.setValue('comments', '');
   g_form.setValue('work_notes', '');

}

 

That will make the fields clear after save in Workspace.

 

check these:

1. Is the record really saved?

Refresh the record — you’ll see the note was added even though the text stays in the box.

2. Any custom client script/UI policy on those fields?

 

 

Kindly mark it correct and helpful if it is applicable.

Thanks,

Raj