Conditional Logic
Create intelligent forms that adapt to user responses
What is Conditional Logic?
Conditional logic allows your forms to show, hide, or modify fields based on user responses. Create intelligent forms that adapt in real-time, providing a personalized experience for each user.
Key Features
Show/Hide Fields
Dynamically show or hide fields based on previous answers, creating cleaner, more relevant forms.
Dynamic Requirements
Make fields required or optional based on user selections, ensuring you collect the right data.
Dynamic Options
Change dropdown options based on previous selections, creating cascading choice menus.
Calculated Fields
Auto-calculate values based on other field inputs using mathematical formulas.
How It Works
Rule Structure
Each conditional rule follows a simple pattern:
Available Conditions
| Condition | Description | Example |
|---|---|---|
| equals | Exact match | Country equals "USA" |
| not_equals | Does not match | Age not equals "18" |
| contains | Contains text | Email contains "@company.com" |
| greater_than | Number comparison | Budget greater than 1000 |
| is_empty | Field is blank | Phone is empty |
Available Actions
| Action | Description | Use Case |
|---|---|---|
| show | Make field visible | Show "Company" when "Business" is selected |
| hide | Make field invisible | Hide "Student ID" for non-students |
| require | Make field mandatory | Require "VAT Number" for EU customers |
| set_value | Auto-fill field value | Set "Priority" to "High" for urgent requests |
| set_options | Change dropdown options | Update "State" options based on "Country" |
Real-World Examples
E-commerce Product Inquiry
Show different fields based on product type selection:
Event Registration with Pricing
Calculate ticket price based on attendee type:
Job Application Screening
Show role-specific questions based on position:
Best Practices
Do's
- • Keep logic simple and intuitive
- • Test all conditional paths thoroughly
- • Use clear field labels and descriptions
- • Provide visual indicators for smart fields
- • Start with basic rules and add complexity gradually
Don'ts
- • Don't create circular dependencies
- • Avoid overly complex nested conditions
- • Don't hide required fields without alternatives
- • Avoid confusing users with too many changes
- • Don't forget to test edge cases
Getting Started
Ready to create your first smart form? Start with our pre-built smart templates or add conditional logic to any existing form.