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.
Post button disappears when work notes field is made mandatory by UI Policy or Client Script - Known Error
  • >
  • Knowledge Base
  • >
  • Known Error (Knowledge Base)
  • >
  • Post button disappears when work notes field is made mandatory by UI Policy or Client Script
KB0831615

Post button disappears when work notes field is made mandatory by UI Policy or Client Script


3283 Views Last updated : Jul 4, 2025 public Copy Permalink
KB Summary by Now Assist

Description

Post button disappears when the "Work Notes" field is made mandatory by an UI Policy or Client Script. 

Steps to Reproduce

UI Policy example: 

1. Create an UI Policy with the following properties:
Table = incident_task
Name = test
Condition = State is Pending
Reverse if false = true

2. Create ui policy action as follow:
Field = Work Notes
Mandatory = true

3. Create test record in incident_task table with state "Work In Progress"
4. Edit the state field of the test record to be "Pending"
> UI Policy will make the Work Notes field mandatory
> See that the Post button disappears 


Client Script example: 

1. Create an onChange Client Script on the incident table, on the "Category" field. 

2. Add the following code in the Script section:

function onChange(control, oldValue, newValue, isLoading, isTemplate) {
if (isLoading || newValue === '') {
return;
}

//Type appropriate comment here, and begin script below
if(!g_form.isNewRecord()){
g_form.setMandatory('work_notes', true);
}

} 

3. Edit any incident record and change the value of the Category field.
> The Client Script will make the Work Notes field mandatory.
> And the "Post" button disappears. 


Workaround

This is expected behavior in New York and Orlando. However, PRB1407767 is now considered an Enhancement Request. Development will make the "Post" button configurable. If configured On then it would appear and users would be able to Post as if it were not mandatory. Currently the Fix Target is Quebec. 


Related Problem: PRB1407767

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.