Define required fields

You can specify which form fields are required in forms. This action prevents users with the personalize_form role from removing the field by configuring the form layout.

Before you begin

Role required: admin

The Required Form Fields plugin must be active.

About this task

If present on a form, only an administrator can remove required fields. When you configure a form, required fields appear in a gray color and have a tooltip indicating they are required. Required fields are defined in the Required Form Fields [sys_ui_element_required] table.

The expected (although not the only) use case for this feature is as part of a delegated administration scheme. For example, you can grant branch offices the rights to modify forms by granting the personalize_form role, but not allow them to remove certain fields which are critical to overall business processing.

Procedure

  1. Navigate to sys_properties.list.
  2. Locate the property named glide.ui.form.enforce_required_fields and make sure it is set to true.
  3. Navigate to System UI > Required Form Fields.
  4. Click New.
  5. Select the table and field, and then select the Required check box.
    The following example sets the Short description field on the Incident form to be required.
    Required form field
    If you decide later that you do not want to make the field required, clear the Required checkbox. This action is preferable to deleting the record.
  6. Click Submit.

Result

If the table specified has extension tables, then the Required Form Field record applies to forms of all extended tables. For example, if an administrator specifies that the Short description field is required for the Task table, then this configuration applies to the Incident form, Change Request form, Problem form, and so on.

An extended table can override the Required Form Field rule of its base table. For example, if the Short description field is required for the Task table, but not required for the Incident table, it is required for all Task tables except Incident.