SETREADONLY

Sets a field to be read-only or editable.

Parameters

field String (required) - The data name

readOnly boolean,null (required) - Boolean value representing whether the field should be read-only, or null to restore the original state

Examples

SETREADONLY('weather_summary', true);

// Sets the field to read only, not editable by the user
SETREADONLY('weather_summary', false);

// Sets the field to be active, editable by the user
SETREADONLY('weather_summary', null);

// Unsets any override previously set by SETREADONLY and uses the original setting from the form schema