1321 Otis Street N.E., Washington, DC 20017 +1.914.429.4583 sales@rayseocompany.com

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

  1. Go to the Structure tab.
  2. Click the field you want to control (the field that will be shown or hidden).

Step 2: Open Field Settings

  1. Switch to the Field Settings tab.
  2. Scroll to the Conditional Logic section.
  3. 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

  1. Add a Dropdown field.
  2. Add options:
    • Individual
    • Business
  3. Add a Text field called “Company Name”.
  4. Select the “Company Name” field.
  5. Open Field Settings.
  6. 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:

  1. Use the Theme Preview panel.
  2. Change values that trigger your conditions.
  3. Confirm fields appear or disappear as expected.
  4. 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