Documentation/Conditional Logic

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:

When [field] [condition] [value], then [action] [target field]

Available Conditions

ConditionDescriptionExample
equalsExact matchCountry equals "USA"
not_equalsDoes not matchAge not equals "18"
containsContains textEmail contains "@company.com"
greater_thanNumber comparisonBudget greater than 1000
is_emptyField is blankPhone is empty

Available Actions

ActionDescriptionUse Case
showMake field visibleShow "Company" when "Business" is selected
hideMake field invisibleHide "Student ID" for non-students
requireMake field mandatoryRequire "VAT Number" for EU customers
set_valueAuto-fill field valueSet "Priority" to "High" for urgent requests
set_optionsChange dropdown optionsUpdate "State" options based on "Country"

Real-World Examples

E-commerce Product Inquiry

Show different fields based on product type selection:

Rule 1: When "Product Type" equals "Software", show "License Type" field
Rule 2: When "Product Type" equals "Hardware", show "Shipping Address" field
Rule 3: When "License Type" equals "Enterprise", require "Company Size" field

Event Registration with Pricing

Calculate ticket price based on attendee type:

Rule 1: When "Attendee Type" equals "Student", set "Price" to "$25"
Rule 2: When "Attendee Type" equals "VIP", set "Price" to "$299"
Rule 3: When "Attendee Type" equals "Student", show "Student ID" field

Job Application Screening

Show role-specific questions based on position:

Rule 1: When "Position" equals "Developer", show "Technical Skills" field
Rule 2: When "Position" equals "Designer", show "Portfolio URL" field
Rule 3: When "Experience" greater than "5 years", show "Leadership Experience" field

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.