Skip to page contentSkip to chat
ServiceNow support
    • Community
      Ask questions, give advice, and connect with fellow ServiceNow professionals.
      Developer
      Build, test, and deploy applications
      Documentation
      Find detailed information about ServiceNow products, apps, features, and releases.
      Impact
      Accelerate ROI and amplify your expertise.
      Learning
      Build skills with instructor-led and online training.
      Partner
      Grow your business with promotions, news, and marketing tools
      ServiceNow
      Learn about ServiceNow products & solutions.
      Store
      Download certified apps and integrations that complement ServiceNow.
      Support
      Manage your instances, access self-help, and get technical support.
Worknotes is being duplicated after changing state of incident = On hold & on hold reason = awaiting caller - Support and Troubleshooting
  • >
  • Knowledge Base
  • >
  • Support and Troubleshooting (Knowledge Base)
  • >
  • Worknotes is being duplicated after changing state of incident = On hold & on hold reason = awaiting caller
KB0717814

Worknotes is being duplicated after changing state of incident = On hold & on hold reason = awaiting caller


3330 Views Last updated : Apr 7, 2024 public Copy Permalink
KB Summary by Now Assist

Issue

Symptoms


Upon adding a work note using the Post UI action, & change of Incident State to On Hold & On Hold Reason to Awaiting Customer, the work notes is duplicated

Release


Jakarta Patch 9c
Kingston Patch 9
London Patch 2

Browsers: Chrome & Firefox

Steps to Reproduce


Step 1: Open an incident in In Progress state.
Step 2: Add a work note, and click on Post
Step 3: Change the state to On hold, and On hold reason to Awaiting customer
Step 4: Check the work notes field, and its populated with the previous work note that was just posted.

Expected behavior
The work notes should not get duplicated after the state and on hold reason is changed.

Actual behavior
Work notes is getting duplicated after the work note is added to activity log by clicking the Post button.
However, if the form is reloaded after the post operation, and then the state & on hold reason are changed, the work notes is not getting duplicated.
Also if the work notes is added, using the save operation, the work notes are not duplicated.

It only happens when the post operation is used, and form is not reloaded or refreshed.

Workaround


Create a Client Script as below which clears the work notes field on the state and on hold reason change

function onChange(control, oldValue, newValue) {
if (oldValue == newValue)
return;

console.log("PREVIOUS OHR: " + oldValue + "\nNEW OHR: " + newValue + "\nGetState: " + g_form.getValue("state"));

if (g_form.getValue("state") == 3 && newValue == 1){
g_form.setValue('work_notes','');
g_form.setMandatory('comments', true);
}
else
g_form.setMandatory('comments', false);
}

 


The world works with ServiceNow.

Sign in for more! There's more content available only to authenticated users Sign in for more!
Did this KB article help you?
Did this KB article help you?

How would you rate your Now Support digital experience?

*

Very unsatisfied

Unsatisfied

Neutral

Satisfied

Very satisfied

Very unsatisfied

Unsatisfied

Neutral

Satisfied

Very satisfied

What can we improve? Please select all that apply.

What are we doing well? Please select all that apply.

Tell us more

*

Do you expect a response from this feedback?

  • Terms and conditions
  • Privacy statement
  • GDPR
  • Cookie policy
  • © 2025 ServiceNow. All rights reserved.