---
sourceDocument: Administration de la ServiceNow AI Platform en Australie
sourceDocumentLink: https://servicenow-prod.fluidtopics.net/r/fr-FR/platform-administration

 Release :

    - australia

ft:locale :

    - fr-FR

ft:publication_title :

    - Administration de la ServiceNow AI Platform en Australie

ft:clusterId :

    - platadm

bundleId :

    - platadm

workflow :

    - Platform


---

# Exemple : restreindre un champ avec un script

# Exemple : restreindre un champ avec un script {#ariaid-title1}

* Rversion finale: Australia
* 
* Mis à jour 12 mars 2026
* 
* ![](https://www.servicenow.com/docs/portal-asset/ico-clock) 1 minute de lecture

Ce contrôle d'accès empêche tout le monde de modifier un incident avec une catégorie de Logiciel dans une liste. Elle est définie par un script.
Figure 1. Restreindre les incidents logiciels

* Type : enregistrement
* Opération : list_edit
* Nom incident :\[incident\]
* Remplacement administrateur : Décochez la case.
* Script :

      if (current.category == 'software')
      answer = false;
      else
      answer = true;

{#r_ExampleRestrictAFieldWithAScript__ul_dky_krl_v4}

