Condition fields in the registration form
Conditional Fields
The "Condition" function allows you to control the display of fields in forms based on inputs from other fields. For example, you can make the "Room Type" field appear only if the guest has indicated in a previous field that they need a hotel. Or show the "Departure Airport" and "Flight Number" fields only if they have indicated they are arriving by plane.
The following example illustrates how to implement a condition: The "Comments (non-smoking room, etc.)" field should appear when the "Do you need a hotel room reserved?" field has one of the options "Single Room", "Double Room", or "Suite" selected. If the guest selects the option "No, thanks", the field should remain hidden.
- To create a condition, click on "Restriction/Condition" in the "Fields" tab of the form in the row of the field to be shown/hidden. In this example, it is the "Comments (non-smoking room, etc.)" field.
- Enter the field ID of the related field in the "Condition" field. In this example, it is the "Do you need a hotel room reserved?" field.
- The field ID can be found directly under the input field for the field label, it is always composed of "customField..." and a number. In this example, the field ID is "customField4946".
- Now enter the option that will trigger the field to be displayed, putting the option in quotation marks.
- The format for a formula is: Field-ID = "OptionA"
You can also define multiple options for displaying the field:
Field-ID = "OptionA" OR Field-ID = "OptionB" means that the field will be displayed when either "OptionA" or "OptionB" is selected.
Field-ID = "OptionA" AND Field-ID = "OptionB" means that the field will be displayed when both "OptionA" and "OptionB" are selected.
In the example, the formula would be as follows:
customField4946 = "Single Room" OR customField4946 = "Double Room" OR customField4946 = "Suite"
Alternatively, you can work with an excluding formula, for this put an exclamation mark before the equals (meaning "is not"):
customField4946 != "No, thanks"
- If the related field is a checkbox, simply enter only the field ID under the condition.
Related Articles
Configuring form fields in a form under the “Fields” tab
Configuring form fields in the form under the “Fields” tab Once you have configured the default settings for the registration form under the “Settings” tab, you can use the “Form fields” tab to configure the fields you want to be displayed on the ...
Adding input and text fields to forms under the “Form fields” tab
You can add more fields to your forms by using the “Form fields” tab under “Forms”. Adding an existing input field from the database: Click on the symbol and select “Add field”. This option is also always displayed right at the bottom of the list. ...
Configuring a form: Selecting your default settings under the “Settings” tab
Selecting your default settings under the “Settings” tab In Invitario, all of forms can be individually configured to meet the requirements of the registration process for your event. These forms can not only be used to record registrations and ...
Adding fields for selecting sessions and dates to forms
You can use the “Form fields” tab under “Forms” to add one or several fields for selecting sessions. Depending on your requirements, you can add sessions to your form in a number of ways: As a choice of dates if the event is a recurring one. As a ...
Dynamic display of form fields
Dynamic Display of Form Fields You can dynamically display form fields, meaning they can be shown or hidden based on previous form fields or the guest's belonging to a target group or an assigned tag. To set this up, follow these steps: Click on ...