How to use conditional logic in Balbooa Joomla Forms?




Balbooa Joomla Forms Builder allows you to add conditional logic that makes your Joomla forms simple and personalized. In this tutorial, we will show you how to use conditional logic in Joomla forms.


Let's see how Conditional Logic works on the example of the Callback Form. Suppose you need to find out which way is better to contact the user by phone or email.


If the field Email is selected, display the field Email Address. If the field Phone is selected, display fields Phone Number, Date, and Time.


To do this, we created a Callback Form with the following fields and labels:

Field Label

Form Field

Name

Input. Type: Text Input

What is the best way to contact you?

Radio. Item: Phone, Email

Phone Number

Phone

Email Address

Input. Type: Email

Date

Calendar

Time

Input. Type: Time




How to add conditional logic to Joomla forms?


1. Click the icon Conditional Logic in the left sidebar.
2. Add New Rule:


  • Condition: Click Field and select What is the best way to contact you? ➝ click State and choose Contains ➝ click Value and select Email.
  • Action: Click Action and select Show Field ➝ click Field and choose Email Address.


Conditional Logic in Joomla forms - Balbooa Joomla Forms Builder



3. Add New Rule:


  • Condition: Click Field and select What is the best way to contact you? ➝ click State and choose Contains ➝ click Value and select Phone.
  • Actions: Click Action and select Show Field ➝ click Field and choose Phone Number.
  • Add New Action ➝ click Action and select Show Field ➝ click Field and choose Date.
  • Add New Action ➝ click Action and select Show Field ➝ click Field and choose Time.


Conditional Logic - Balbooa Joomla Forms Builder



4. Save, display the form and test Conditional Logic.

Related articles