Thank you for your feedback.
Form temporarily unavailable. Please try again or contact docfeedback@servicenow.com to submit your comments.
Versions
  • London
  • Kingston
  • Jakarta
  • Istanbul
  • Helsinki
  • Geneva
  • Store
Close

Example - Restrict a field with a script

Example - Restrict a field with a script

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

Figure 1. Restrict Software Incidents
  • Type: record
  • Operation: list_edit
  • Name Incident:[incident]
  • Admin overrides: Clear the check box.
  • Script:
    if (current.category == 'software')
    answer = false;
    else
    answer = true;