Conditional Logic
Conditional logic allows you to show or hide form fields and steps based on user responses. This creates dynamic, personalized forms that adapt to each userâs needs.
What is Conditional Logic?
Section titled âWhat is Conditional Logic?âConditional logic follows simple IF-THEN rules:
IF [condition is met]THEN [show/hide field or step]Example Scenarios
Section titled âExample Scenariosâ| Scenario | Condition | Action |
|---|---|---|
| Business inquiry | âBusiness Typeâ = âBusinessâ | Show âCompany Nameâ field |
| International shipping | âCountryâ â âUnited Statesâ | Show âInternational Shippingâ step |
| Custom requirements | âNeed customization?â = âYesâ | Show âCustomization Detailsâ field |
When to Use Conditional Logic
Section titled âWhen to Use Conditional LogicâGood Use Cases
Section titled âGood Use Casesâ- Simplifying forms: Hide irrelevant questions
- Follow-up questions: Ask more based on previous answers
- Personalization: Show different fields for different user types
- Reducing abandonment: Less overwhelming forms
Avoid Overuse
Section titled âAvoid Overuseâ- Too many conditions can slow form performance
- Complex logic may confuse users
- Test thoroughly before publishing
Setting Up Conditional Logic
Section titled âSetting Up Conditional LogicâFor Fields
Section titled âFor Fieldsâ- Click on the field to select it
- Scroll to Conditional Logic in the settings panel
- Toggle Enable Conditional Logic to ON
- Configure your conditions
For Steps
Section titled âFor Stepsâ- Click on the step to select it
- Find Conditional Logic in step settings
- Toggle Enable Conditional Logic to ON
- Configure your conditions
Condition Configuration
Section titled âCondition ConfigurationâBasic Structure
Section titled âBasic StructureâEach condition has three parts:
| Part | Description | Example |
|---|---|---|
| Field | Which field to check | âBusiness Typeâ |
| Operator | How to compare | âequalsâ |
| Value | What to compare against | âBusinessâ |
Available Operators
Section titled âAvailable Operatorsâ| Operator | Description | Works With |
|---|---|---|
| Equals | Exact match | All fields |
| Does not equal | Not exact match | All fields |
| Contains | Value includes text | Text fields |
| Does not contain | Value excludes text | Text fields |
| Is empty | Field has no value | All fields |
| Is not empty | Field has a value | All fields |
| Greater than | Number comparison | Number, Date |
| Less than | Number comparison | Number, Date |
| Is checked | Checkbox is selected | Checkbox |
| Is not checked | Checkbox is not selected | Checkbox |
Multiple Conditions
Section titled âMultiple ConditionsâAND Logic
Section titled âAND LogicâAll conditions must be true for the field to show.
Show "Company Size" field when: "Business Type" equals "Business" AND "Number of Employees" is not emptyOR Logic
Section titled âOR LogicâAny condition being true will show the field.
Show "Phone Preference" field when: "Contact Method" equals "Phone" OR "Contact Method" equals "Text"Combining AND/OR
Section titled âCombining AND/ORâCreate complex logic with multiple condition groups:
Show "VIP Services" field when: ("Customer Type" equals "Premium" OR "Customer Type" equals "Enterprise") AND "Account Age" is greater than "1 year"Adding Multiple Conditions
Section titled âAdding Multiple Conditionsâ- Set up your first condition
- Click Add Condition
- Choose AND or OR
- Configure the additional condition
- Repeat as needed
Managing Conditions
Section titled âManaging Conditionsâ| Action | How To |
|---|---|
| Add | Click âAdd Conditionâ |
| Remove | Click the X next to condition |
| Reorder | Drag conditions to reorder |
| Change Logic | Toggle between AND/OR |
Common Use Cases
Section titled âCommon Use CasesâShow Follow-up Field
Section titled âShow Follow-up FieldâField: "Other Category"Show when: "Category" equals "Other"Show Step Based on Selection
Section titled âShow Step Based on SelectionâStep: "International Shipping"Show when: "Country" does not equal "United States"Require Field Based on Checkbox
Section titled âRequire Field Based on CheckboxâField: "Delivery Instructions"Show when: "Special Delivery" is checkedMultiple Option Trigger
Section titled âMultiple Option TriggerâField: "Product Interest Details"Show when: "Interest Area" contains "Products"Conditional Logic Examples
Section titled âConditional Logic ExamplesâExample 1: Contact Preference
Section titled âExample 1: Contact PreferenceâQuestion: "Preferred Contact Method"Options: Email, Phone, Mail
IF "Preferred Contact Method" = "Phone"THEN show "Best Time to Call" field
IF "Preferred Contact Method" = "Mail"THEN show "Mailing Address" fieldsExample 2: Order Type
Section titled âExample 2: Order TypeâQuestion: "What are you ordering?"Options: Product, Service, Consultation
IF "What are you ordering?" = "Product"THEN show "Product Selection" step
IF "What are you ordering?" = "Service"THEN show "Service Details" step
IF "What are you ordering?" = "Consultation"THEN show "Scheduling" stepExample 3: Customer Type
Section titled âExample 3: Customer TypeâQuestion: "Are you a new or returning customer?"Options: New, Returning
IF "Customer Type" = "Returning"THEN show "Previous Order Number" field
IF "Customer Type" = "New"THEN show "How Did You Hear About Us?" fieldTesting Conditional Logic
Section titled âTesting Conditional LogicâPreview Testing
Section titled âPreview Testingâ- Click Preview in the form builder
- Fill out the form as a user would
- Verify fields show/hide correctly
- Test all possible paths
Edge Cases to Test
Section titled âEdge Cases to Testâ- What happens when condition field is empty?
- What happens when user changes their answer?
- Do required fields work correctly with conditions?
Troubleshooting
Section titled âTroubleshootingâField Not Showing When Expected
Section titled âField Not Showing When Expectedâ- Check condition field: Is the trigger field on a previous step?
- Verify operator: Is âequalsâ vs âdoes not equalâ correct?
- Check value: Does the value match exactly (case-sensitive)?
- Review logic: Are AND/OR conditions correct?
Field Not Hiding When Expected
Section titled âField Not Hiding When Expectedâ- Verify logic is enabled: Is the toggle ON?
- Check all conditions: Are all conditions being met?
- Test in preview: Does it work in preview mode?
Performance Issues
Section titled âPerformance Issuesâ- Reduce conditions: Simplify where possible
- Limit cascading logic: Avoid conditions based on conditional fields
- Test on mobile: Ensure performance is acceptable
Best Practices
Section titled âBest PracticesâKeep It Simple
Section titled âKeep It Simpleâ- Use the minimum conditions needed
- Avoid deeply nested logic
- Test all possible paths
User Experience
Section titled âUser Experienceâ- Make conditional transitions smooth
- Donât hide too many fields at once
- Consider using multi-step forms instead
Maintenance
Section titled âMaintenanceâ- Document complex logic
- Review conditions when updating forms
- Test after any form changes