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.
Cross Scope Error related to "not set on field" when Variable Editor is present on the Form - Known Error
  • >
  • Knowledge Base
  • >
  • Known Error (Knowledge Base)
  • >
  • Cross Scope Error related to "not set on field" when Variable Editor is present on the Form
KB0784188

Cross Scope Error related to "not set on field" when Variable Editor is present on the Form


9297 Views Last updated : Oct 10, 2024 public Copy Permalink English (Original)
  • English (Original)
  • Japanese
KB Summary by Now Assist

Description

Seeing the following Error Messages when loading a Form of a Record inside a Scoped Application:

Display true not set on field field_name: cross-scope access denied.
ReadOnly true not set on field field_name: cross-scope access denied.

Steps to Reproduce

  1. Create a Scoped Application
    2. Create a Table that Extends Task inside the Scoped Application
    3. Create a Record Producer to create Records on the Table from Step 2
    4. Create the Variable Editor Formatter where Table = Table from Step 2 and Formatter = com_glideapp_questionset_default_question_editor
    5. Add the Variable Editor to the Form of the Table from Step 2
    6. Create a Field on the Step 2 Table. But do not add the Field to the Form View
    7. Create an onLoad Client Script that Hides the Field as follows: g_form.setDisplay('<field from #6>',false);
    8. Create a Record from the Record Producer. Notice the Console Log Error "TypeError: Cannot read property 'getScope' of undefined"
    9. Enable "Compact the user interface" and reload the record. Notice the below error appears in red on the bottom of the page.
    Display false not set on field : cross-scope access denied.

Workaround

You can add the Field to the Form View to resolve the issue.

If you do not want to display the Field on the Form then please use the following Workaround:

  1. Create a Form Section on the Form
  2. Add the Fields to the Form Section
  3. Create an onLoad Client Script to hide the Form Section with the following Script: g_form.setSectionDisplay("section_name", false);

Related Problem: PRB1355020

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.