Skip to main content

Display a field based on a condition

Learn how to make fields of a form appear or disappear based on the value of another field

  1. Create a form or open an existing form.

  2. From the components list, add a component that you want to hide or make read-only.

  3. To display the field based on condition, place your mouse pointer on the field and click Edit.

    1. Go to the Conditional tab.

    2. In the Simple section, from the This component should Display list, select True.

    3. From the When the form component list, select the name of the form component.

    4. In the Has the value text box, enter the value for which the component should appear.

    5. Click Save.

      condidional.png
Examples
  1. You are building a form based on a guest's health history.

    Condition: Fields related to female health history should display only when the gender field is selected as F (Female).

    Action: When the guest is filling out the form, if they select the gender as Female, then the following fields are displayed, asking for more information on their health.

    Component

    Label

    This component should display

    When the form component

    Has the value

    Select boxes

    Pap smear

    True

    Gender

    F

    Select boxes

    Mammogram

    True

    Gender

    F

    Date

    Last menstrual cycle

    True

    Gender

    F

  2. You want to display the signature field only after the terms and conditions have been marked as agreed.

    Action: When a person is filling this form, if the select box under terms and conditions is selected, then only the signature field appears.

    Component

    Label

    This component should display

    When the form component

    Label

    Has the value

    Signature

    Signature

    True

    Select boxes

    I have read and agree with the Terms and Conditions.

    Selected

Note

In the above examples, the value of a component stated is case sensitive and editable under the Data tab of the component settings.