Not every form submission needs to land in the same place, or even sync at all. Maybe you only want spam-free leads recorded, or you want submissions routed to different sheets depending on where they came from. That’s exactly what Conditional Logic is for.
With Conditional Logic, you can control exactly when a submission gets synced to Google Sheets — and, if you’re using Multi Sheet Connection, which specific sheet it should go to — all based on the values entered in your Contact Form 7 form.
Conditional Logic for Single Sheet Connection
If your form uses a Single Sheet Connection, Conditional Logic lets you decide whether a submission should be synced at all, based on the criteria you define.
Step 1: Enable Conditional Logic
Locate the Conditional Logic setting inside your feed configuration and toggle on Enable Conditional Logic.
Step 2: Set Your Conditions
Define your criteria using comparison operators such as equals, not equals, greater than, or less than. For more advanced scenarios, you can also use Starts With or Ends With logic.
Step 3: Save Your Changes
Click the Save button to apply your conditions.
Examples
- Only sync the entry if your-name is David.
- Only sync the entry if your-email is david@gmail.com.
You can add as many additional conditions as your requirements call for.
Conditional Logic for Multi Sheet Connection
If you’re using Multi Sheet Connection, Conditional Logic becomes even more powerful — you can route the same form’s submissions to different Google Sheets based on different rules for each feed.
Add Two Feeds
To route submissions conditionally, start by creating two separate feeds under Multi Sheet Connection — one for each destination sheet.
Feed 1 – Conditional Logic
To enable Conditional Logic for Feed 1:
- Navigate to the Conditional Logic section in Feed 1’s settings.
- Toggle on Enable Conditional Logic.
- Define your condition. For example:
- Field: “Reference”
- Condition: is
- Value: “Google”
- Save your settings to apply the logic. This ensures Feed 1 only syncs entries when the specified condition is met.
Feed 1 Configuration
Configure your first feed to connect to your first Google Sheet.
Feed 1 – Conditional Logic
To enable Conditional Logic for Feed 1:
- Navigate to the Conditional Logic section in Feed 1’s settings.
- Toggle on Enable Conditional Logic.
- Define your condition. For example:
- Field: “Reference”
- Condition: is
- Value: “Google”
- Save your settings to apply the logic. This ensures Feed 1 only syncs entries when the specified condition is met.
Feed 2 Configuration
Configure your second feed to connect to your second Google Sheet.
Feed 2 – Conditional Logic
To enable Conditional Logic for Feed 2:
- Navigate to the Conditional Logic section in Feed 2’s settings.
- Toggle on Enable Conditional Logic.
- Define your condition. For example:
- Field: “Reference”
- Condition: is
- Value: “Direct”
- Save your settings to apply the logic. This ensures Feed 2 only syncs entries when the specified condition is met.
With this setup, a form submission is automatically routed to Sheet 1 when “Reference” equals “Google,” and to Sheet 2 when “Reference” equals “Direct.” Each entry is logged in the correct sheet based purely on the condition it matches.
What’s Next?
Want to fine-tune which fields, headers, and styles sync alongside your conditional feeds? Check out the Plugin Settings – PRO Version guide. Need to route custom or third-party data as well? See the Hooks to Use Custom Mail Tags guide.
Frequently Asked Questions
What is Conditional Logic used for?
Conditional Logic lets you control whether a form submission syncs to Google Sheets at all, or which specific sheet it should be routed to, based on the values entered in your Contact Form 7 form.
Is Conditional Logic available in the Free version?
No. Conditional Logic is a PRO feature, available with CF7 Google Sheet Connector PRO.
What comparison operators are available for setting conditions?
You can use operators such as equals, not equals, greater than, less than, Starts With, and Ends With to build your condition.
Can I use Conditional Logic with a Single Sheet Connection?
Yes. With Single Sheet Connection, Conditional Logic determines whether a submission is synced at all — if the condition isn’t met, the entry simply won’t be sent to your Google Sheet.
Can I send entries to different sheets based on conditions?
Yes. This requires Multi Sheet Connection with two or more feeds, each with its own Conditional Logic rule, so different entries are routed to different sheets automatically.
What happens if a submission doesn't match any condition?
The entry simply won’t be synced to Google Sheets for that particular feed. If you’re using Multi Sheet Connection, it also won’t appear in a feed whose condition it doesn’t match.
Should I test my Conditional Logic rules before going live?
Yes, always. Submit a sample entry that matches your condition (and one that doesn’t) to confirm your rules behave as expected before relying on them for live form submissions.
Can I add multiple conditions to a single feed?
Yes. You can add as many conditions as needed for a feed, depending on how specific you want your routing logic to be.
CF7 Google Sheet Connector
WPForms Google Sheet Connector
Ninja Forms Google Sheet Connector
Gravity Forms Google Sheet Connector
Formidable Forms Google Sheet Connector
Forminator Forms Google Sheet Connector
Fluent Forms Google Sheet Connector
JetFormBuilder Google Sheet Connector
Elementor Forms Google Sheet Connector
Avada Forms Google Sheet Connector
Divi Forms Google Sheet Connector
WooCommerce Google Sheet Connector
Easy Digital Downloads Google Sheet Connector
WordPress Core Google Sheet Connector