Disable a field

This tutorial disables a field unless a condition is met. Disabling a field sets the field to readonly.

  1. Open the App in AppStudio.
  2. In the Application Components section, select the component that contains the database field you want to disable.
  3. In the Toolbox, double-click the Disable component, or drag-and-drop the Disable component to a location under the selected component. This action adds the Disable component as a child of the selected component.
  4. To set the conditions that determine whether the parent component to the Disable component will be disabled on the client device, add a Field component as a child of the Disable component and complete the Component Details.
    • Field name: The database field that contains the value that determines whether the parent component is disabled.
    • Data: The value that is compared to the value in the database field specified in Field name.
    • Test: The test condition.

    For this example, Field name is set to assigned_to, and Data and Test are blank. This means that if the assigned_to field does not contain a value, the Department textbox will be disabled.