Divi and its page builder provide a lot of useful features to create better websites. And Divi conditional logic is one of them, which allows users to add forms with conditions to use it effectively. Therefore, in this post, we’re going to see how we can use it.
So, without making any delay, let’s jump right in it!
Creating conditional logic forms in the Divi theme
To start creating conditional logic form, there’re some necessary steps to follow,
- Create a new page / edit existing one, where you want to add conditional logic form
- Launch Divi Builder
- Choose Build From Scratch
- Once the white canvas appear, add a single column row.
Add Contact Form module
After inserting a single column row, add Contact Form module from the Divi module library.
Upon adding the module, you get Name, Email, and Message field by default. Now, if you want to apply conditional logic on a particular field, then go to field’s individual setting. Then, further head over to the conditional logic setting and open it. Here, you’ll find a toggle, check it as “Yes.” Then add rules to apply conditional logic.
In conditional logic settings, you also get the Relation toggle, which defines all your conditions. If relation toggle set as ANY, then condition will be applied if any of the rules happens to be true. However, if you set relation as ALL, then it’s necessary that each rule would return true, to apply the condition.
In rules, you can add up to 08 conditions that are as follows,
- Does not equal
- Is greater than
- Is less than
- Does not contain
- Is empty
- And is not empty