Script-based field restriction example

reference australia Updated Sep 10, 2026 1 min read r_ExampleRestrictAFieldWithAScript.md
Raw file servicenow.com

This access control prevents everyone except admins from editing an incident with a category of Software in a list. It is defined by a script.

[Omitted image "RestrictSoftwareIncidents.png"] Alt text: Access control that restricts list editing on software incidents to admins.

  • Type: record

  • Operation: list_edit

  • Name: Incident [incident]

  • Advanced: Select the check box.

  • Script:

    JavaScript
    if (current.category == 'software')answer = false;elseanswer = true;
Search documentation
Search document titles and file paths on the australia branch