1. Home
  2. Docs
  3. Everest Forms
  4. Tutorials
  5. How to Implement Conditional Logic in Form Fields?

How to Implement Conditional Logic in Form Fields?

Everest Forms allows you to enable and implement Conditional Logic on each form field. So, you can decide on which form fields to use for conditional logic on your forms. 

Here, we show you how to apply Conditional logic for each form field with examples.

Case 1: Show/hide field if the user enters a specific input

In this example, we have a form field called Subject.  If the user enters Purchase as the field input then, we have to show the Purchase Items Field.

For this, go to the Field Options of the form field(Purchase Items) that you want to show and Enable Conditional Logic for that field. Then, apply the conditional logic rule here. 

Click on Show and select the form field as Subject. Let the comparison option be Is and then, enter the specific input. 

conditional logic docs one

Then, save your form and add it to your website and, you can see the condition work.

conditional logic form docs

Case 2: Show different fields for different user inputs on the Multiple Choice Field

In this example, we have a form field called Communication Medium. And, the options are Phone or Email. The user can only choose one.

If the user selects Phone, we need to show Phone Field. And if the user selects Email, we need to show Email Field.

For this, we go to the Field Options of Phone Field and Enable Conditional Logic. Then, click on Show and select the field as Communication Medium. Let the comparison option be Is and then, select the option as Phone.

conditional logic docs two

Do the same for Email Field but, don’t forget to choose the option as Email.

Then, save your form and add it to your website and, you can see the condition work.

Case 3: Show hidden fields on a single click of the users

In this example, we have a form field called Other Information and it consists of a checkbox field called Work Experience. We have to show Field like Company name, Position, Date/Time

For this, we go to the Field Options of Field and Enable Conditional Logic. Then, click on Show and select the field as Other Information. Let the comparison option be Is and then, select the option as Work Experience.

Then, save your form and add it to your website and, you can see the condition work.

Was this article helpful to you? Yes 1 No

How can we help?