Ray's Contact Form
Using Conditional Logic
Conditional Logic allows you to show or hide fields based on user input.
This means your form can change dynamically depending on what someone selects.
For example:
- Show a “Company Name” field only if the user selects “Business”.
- Show additional questions only if someone chooses “Yes”.
- Hide irrelevant fields to keep forms clean and simple.
Conditional Logic helps you create smarter, more interactive forms.
What Is Conditional Logic?
Conditional Logic works using rules.
Each rule follows this pattern:
If this field has this value → Then show (or hide) another field.
You control:
- Which field is being checked
- What value triggers the rule
- Whether the target field is shown or hidden
How to Enable Conditional Logic
Step 1: Select a Field
- Go to the Structure tab.
- Click the field you want to control (the field that will be shown or hidden).
Step 2: Open Field Settings
- Switch to the Field Settings tab.
- Scroll to the Conditional Logic section.
- Enable Conditional Logic.
Once enabled, the rule builder will appear.
Creating Your First Rule
Let’s create a practical example.
Example Scenario
You have a dropdown field:
“Are you contacting us as:”
- Individual
- Business
You want to show a “Company Name” field only when “Business” is selected.
Step-by-Step
- Add a Dropdown field.
- Add options:
- Individual
- Business
- Add a Text field called “Company Name”.
- Select the “Company Name” field.
- Open Field Settings.
- Enable Conditional Logic.
Now create the rule:
- If → “Are you contacting us as”
- Equals → Business
- Then → Show this field
Save the form.
Now, when “Business” is selected, the Company Name field appears.
If “Individual” is selected, it remains hidden.
Show vs Hide Logic
You can choose whether the field:
- Shows when conditions are met
- Hides when conditions are met
Most of the time, you will use:
Show this field if…
This keeps your forms cleaner and easier to understand.
Using Multiple Conditions
You can create more advanced rules using multiple conditions.
For example:
Show a field if:
- User selects “Business”
AND - Budget is greater than $1,000
This allows you to create very specific form flows.
Practical Use Cases
Conditional Logic is useful for:
- Contact forms with multiple inquiry types
- Event registration forms
- Quote request forms
- Surveys
- Service request forms
It prevents overwhelming users with unnecessary fields.
Best Practices
✔ Keep rules simple
✔ Avoid stacking too many conditions
✔ Always test every scenario
✔ Use clear field labels
Conditional Logic works best when the logic is obvious and predictable.
Common Mistakes
Field Never Appears
- Make sure Conditional Logic is enabled.
- Check that the correct field and value are selected.
- Ensure spelling and capitalization match exactly.
Field Appears Unexpectedly
- Review your conditions.
- Check whether logic is set to Show or Hide.
- Make sure there are no conflicting rules.
Testing Your Conditional Logic
After setting up your rules:
- Use the Theme Preview panel.
- Change values that trigger your conditions.
- Confirm fields appear or disappear as expected.
- Click Save Form.
Always test before publishing.
Example: Dynamic Contact Form
Here’s a simple dynamic setup:
Field 1: Inquiry Type (Dropdown)
- Support
- Sales
- Partnership
Field 2: Order Number (Text)
- Show only if “Support” is selected
Field 3: Company Website (URL)
- Show only if “Partnership” is selected
This keeps your form clean and focused for each type of inquiry.
Why Conditional Logic Improves Forms
- Reduces form length
- Increases completion rate
- Improves user experience
- Makes forms feel intelligent
Instead of showing 15 fields at once, users only see what applies to them.
What to Learn Next
Now that you understand Conditional Logic, you may want to explore:
- Advanced Fields
- Email Notifications
- Viewing and Exporting Submissions
- Form Settings Deep Dive
Documentation
- Getting Started
- Creating Your First Form
- Understanding the Form Builder Interface
- Creating Multi-Column Layouts
- Using Conditional Logic
- Email Notifications Setup
- Managing & Viewing Submissions
- Exporting Submissions to CSV
- Form Settings – Complete Guide
- Upgrade to Pro
- Basic Fields – Complete Guide
- Advanced Fields – Complete Guide
- Field Settings – Complete Guide
- Spam Protection & Security
- Shortcodes & Embedding Forms