Conditional logic in the Conditional Fields for Elementor Form plugin relies on compare operators to decide when a condition is true or false. These operators help you define how a field’s value should be matched — for example, whether it equals, does not equal, contains, or starts with a specific value.
In this guide, you’ll learn about each available operator and when to use them.
Compare Operators
Here are the commonly used comparison operators in Conditional Fields for Elementor Form:
✅ Equal To (=)
Description: Triggers when the input value exactly matches a specified value.
Example Use Case:
If the customer selects “Order Info” from a dropdown field named query_type
, then show a field to enter the Order Number.
❌ Not Equal To (!=)
Description: Triggers when the input value does not match the specified value.
Example Use Case:
If the selected country
is not “India”, then show a Passport Number field.
⚪ Empty
Description: Triggers when the field is left blank.
Example Use Case:
If the phone_number
field is empty, display a message using an HTML field: “Phone number is required.”
🔘 Not Empty
Description: Triggers when the field has any value entered.
Example Use Case:
If the user enters any value in the referral_code
field, then show a Referral Discount message.
🔤 Starts With
Description: Triggers if the field value starts with the defined text or character.
Example Use Case:
If the coupon_code
starts with “NEW”, show a message: “New User Discount Applied.”
🔚 Ends With
Description: Triggers if the field value ends with the defined text.
Example Use Case:
If the email in the email
field ends with “@company.com”, show an Employee ID field.
🔼 Greater Than (>=)
Description: Triggers if the input number is greater than or equal to the specified value.
Example Use Case:
If the number entered in the age
field is 60 or more, show a Senior Citizen ID field.
🔽 Less Than (<=)
Description: Triggers if the input number is less than or equal to the specified value.
Example Use Case:
If the quantity
selected is 3 or less, show a message: “Minimum quantity required is 4.”
🔍 Contains
Description: Triggers if the field contains a specific word, phrase, or character.
Example Use Case:
If the feedback
field contains the word “bug”, show a new field: “Please describe the issue in detail.”
🚫 Does Not Contain
Description: Triggers if the field does not contain the specified text.
Example Use Case:
If the value in the job_title
field does not contain “Manager”, then hide the Team Size field.