Making Top-Level Objects in Forms Read-Only
This topic describes how to make the top-level objects that reside in a form read-only. For example, you can use security logic to modify access in a script without displaying the form where this object resides, or you can disable this form even if the user possesses the permissions to modify an object where a script does the modifications.
To make top-level objects in forms read-only
Locate, and then modify the following code that resides in the form handler for the top-level object:
form_helpers.enable_form(ctx.form, modify_access);
where:
modify_access contains one of the following values:
true. The user can modify values in the form.
false. The user cannot modify values in the form.
The following code sets the value for the modify_access variable:
var modify_access = ctx.security_descriptor.modify_access();