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,

  1. Create a new page / edit existing one, where you want to add conditional logic form
  2. Launch Divi Builder
  3. Choose Build From Scratch
  4. 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.

Divi Contact Form Module

Upon adding the module, you get NameEmail, 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.

Divi Conditional Logic Toggle enabled

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,

  • Equals
  • Does not equal
  • Is greater than
  • Is less than
  • Contains
  • Does not contain
  • Is empty
  • And is not empty

Divi Conditional Logic Rules

 

 

Divi 4 header footer pack

Fill up your details to download the file

Please check your email for the download link.