Make a field read only
Control whether a field is read only and whether it can be changed by a client script and server-side APIs.
Before you begin
Role required: admin
About this task
You can customize the behavior of a read-only field, including whether a client script or server-side API can modify the read-only field value. You control the read-only behavior by updating the Read only option field in a dictionary record.
For details on read only options, see Configuring read-only security options.
Procedure
Navigate to the field's dictionary entry in one of the following ways.
- Navigate to a field on a form, right-click the field, and select Configure Dictionary or Show <field name>.
- Navigate to System Definition > Dictionary, and click an entry for a field or table.
- Make the field read only by selecting an option in the Read only option field.
The option that you select determines how strict the system treats the security of read-only values once they've been entered. Each option displays the field as read-only in the UI.
| Option | Description |
|---|---|
| Display Read Only | Allows changes to the read-only field through client scripts and server-side operations such as TableAPI, GraphQL, and GlideRecordSecure(). |
| Client Script Modifiable | Allows changes to the read-only field through client scripts but not through background scripts or server-side APIs like TableAPI, GraphQL, and GlideRecordSecure(). |
| Strict Read Only | Prevents any changes to the read-only field from both client scripts and server-side APIs. |
- Select Update.
Parent Topic:Configuring read-only security options