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.
Mandatory dot-walked fields in tables are not being enforced as mandatory - Known Error
  • >
  • Knowledge Base
  • >
  • Known Error (Knowledge Base)
  • >
  • Mandatory dot-walked fields in tables are not being enforced as mandatory
KB0597464

Mandatory dot-walked fields in tables are not being enforced as mandatory


1599 Views Last updated : Jul 12, 2023 public Copy Permalink
KB Summary by Now Assist

Description

Tables that contain dot-walked fields from other tables that are mandatory can be submitted even if the mandatory field is not filled out.

Steps to Reproduce

  1. Go to sc_req_item_list.do.

  2. Click New.

  3. Right-click on Requested for and select Configure Dictionary.

  4. Select the Mandatory check box and click Update.

    The Requested for field on the sc_req_item page now shows the red asterisk marking it as mandatory.

  5. Click Submit without entering anything into the Requested for field.

    The record is saved despite the mandatory field being blank.

 

 

Workaround

This behavior is as designed. As noted in the product documentation topic Making a field mandatory, "a form can be saved with an empty mandatory field if that field is a reference field (derived from another table) and if the parent field is also blank. However, if the mandatory reference field shows a value from the parent field, then the form cannot be saved if this value is deleted."

As a workaround, create a similar client script as a workaround.

Table: <tablename> 
Type: onSubmit 
Script: 

var mandField = g_form.getValue('<reftablename>.<fieldname>'); 
if (!mandField) { 
alert('There is an empty mandatory field!'); 
return false; 
} 

 


Related Problem: PRB569134

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.