special offer desktop
Estimated reading: 3 minutes 193 views

Bit Form: If – Else If – Else

To use this feature, simply go to your form settings, then find the section for conditional logic. From there, you can configure the action behavior to be set as a condition.

If Condition

An “IF” condition in a form is like a smart rule that decides what to do next based on what you tell it. It can do all sorts of cool stuff, like showing or hiding parts of the form, checking if you’ve entered the right information, or making things happen when certain conditions are met. It’s all about making the formwork just the way you want it to!

In the example above, if you enter “Bit” as the First Name and “Apps” as the Last Name, your email will be set as “[email protected]” and your secondary email will be disabled. Our Form validation includes various types of logic such as checking if values are equal, not equal, null, not null, containing certain text, greater than, less than, starting with, ending with, and more.

Else If Condition

In a form, the “Else If” condition works like a backup plan! It checks for additional criteria if the first condition isn’t met. So, if the first condition fails, the “Else If” condition steps in and takes a look at alternative criteria. This makes the form super flexible, allowing it to respond differently depending on what you input.

If the “IF Condition” is not met, then the “Else If” condition is activated. In this example, if the “First Name” is not null and the “Last Name” is null, then the “Secondary Email” will be set to “[email protected]” the “Phone number” will be set to “123456789” and the “Email” field will be “disabled“. The form validation uses different logical operations like Equal, Not Equal, Is Null, Is Not Null, Contain, Not Contain, Greater Than, Less Than, Start With, Greater Than Equal, Less Than Equal, Start With, and End With to make sure that the data is entered correctly and accurately.

Else Condition

In a form, the “Else” condition is like a safety net or backup plan when none of the previous conditions apply. If the main conditions set in the form’s conditional logic aren’t met, the “Else” condition steps in to make sure that a default set of actions or behaviors is carried out. This ensures a complete and controlled response, even in situations where the initial conditions aren’t met.

If the “IF Condition” and the “Else If Condition” are not met, then the “Else” condition is triggered. In this example, the “Secondary Email” value is “[email protected]“. When the form is loaded, the “Secondary Email” value will remain as “[email protected]” because none of the previous conditions are fulfilled. We have set the “First Name” as “Bit“, which satisfies the “Else If” condition, and as a result, the “Secondary Email” and “Phone Number” will be updated. The form validation uses different logical operations like Equal, Not Equal, Is Null, Is Not Null, Contain, Not Contain, Greater Than, Less Than, Start With, Greater Than Equal, Less Than Equal, Start With, and End With to make sure that the data is entered correctly and accurately.

Share this Doc

If – Else If – Else

Or copy link

CONTENTS