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.
How to set variables read only in variables editors of task extended tables - Support and Troubleshooting
  • >
  • Knowledge Base
  • >
  • Support and Troubleshooting (Knowledge Base)
  • >
  • How to set variables read only in variables editors of task extended tables
KB0683863

How to set variables read only in variables editors of task extended tables


11424 Views Last updated : Oct 14, 2022 public Copy Permalink English (Original)
  • English (Original)
  • Japanese
KB Summary by Now Assist

Issue

On the Now platform, we have the option of adding variable editors in tables extended from task. For more information on how to set one, please see the documentation: Configure the default variable editor for a task-extended table

Here, we learn how to set the variables read-only that get displayed in the variable editor in the form view of these tables.

Resolution

Let's consider "Change Request" as one of the task-extended tables.

  1. Open any active change request record and under the header "Additional Options" (or right-click), go to Configure > Form Layout.
  2. Look for an out-of-the-box setup "Change Variable Editor" (as shown in the below screenshot):

    Screenshot of the slushbucket when configuring the change request form

    • This is actually a UI Formatter. add this editor to your form in the desired section.
  3. Back in the form, this variable editor will display variables of the record producer (from where this change request was created in the first place).
  4. Navigate to Service Catalog > Record Producers. Look for the respective record producer and open it.
  5. In the Variables related list, you will see the list of variables defined (and of course, these hold the values in the existing change request).
  6. Open the variable that you prefer to keep read-only for certain users (can be all the variables, as per business requirement).
  7. Check whether you have the Write roles field available. If not, then add this field from the form layout configuration (Configure > Form Layout).
  8. This field gives you the option of which set of roles you want the users to only have "write" access on this variable.

    Screenshot of the "write" roles dialog

Example:

  1. There is a business requirement that requires all non-admin users to have read-only access to the variable in the variable editor.
  2. For that, you would select "admin" as the right role for "Write roles".
  3. Once added (in the Selected section), click Done to save the variable form.
  4. Try impersonating (or logging in as) a non-admin user and opening the same change request (make sure the user has access to the table and their fields).
    • You will notice that the variable is in "read-only" mode in the variable editor.
    • Sample screenshot:
      Image of the variable field with a value in it

 

Related Links

Please refer to our product documentation: Apply permissions to a service catalog variable


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.