Example - Restrict a field with a script

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

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

[Omitted image "RestrictSoftwareIncidents.png"] Alt text:

  • Type: record

  • Operation: list_edit

  • Name Incident:[incident]

  • Admin overrides: Clear 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