Example - Restrict a field with a script

  • Release version: Washingtondc
  • Updated February 1, 2024
  • 1 minute to read
  • 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;