⌘K
  1. Home
  2. Docs
  3. CF7 GSheetConnector
  4. CF7 Conditional Logic – PRO Version

CF7 Conditional Logic – PRO Version

Conditional Logic Guide

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.

Enabling Conditional Logic for Single Sheet Connection in CF7 Google Sheet Connector
Toggle on Enable Conditional Logic inside your Single Sheet Connection feed settings.

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.

Note: Conditional Logic is context-dependent — make sure you understand the scope of the field or setting you’re configuring before applying a rule.
Setting comparison conditions for Conditional Logic in CF7 Google Sheet Connector
Define your comparison conditions, such as equals, not equals, or contains, based on your form fields.
Tip: Before saving, test your conditions with a sample submission to make sure they behave as expected. This helps you catch errors before they affect live form data.
Conditional Logic applied to a Single Sheet Connection feed
Once saved, entries will only sync to your Google Sheet when the defined conditions are met.

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.

Adding two feeds for Multi Sheet Connection in CF7 Google Sheet Connector
Create two separate feeds so each one can route entries to a different Google Sheet.

Feed 1 – Conditional Logic

To enable Conditional Logic for Feed 1:

  1. Navigate to the Conditional Logic section in Feed 1’s settings.
  2. Toggle on Enable Conditional Logic.
  3. Define your condition. For example:
    • Field: “Reference”
    • Condition: is
    • Value: “Google”
  4. 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.

Configuring Feed 1 in Multi Sheet Connection
Set up Feed 1 to connect to your first Google Sheet destination.

Feed 1 – Conditional Logic

To enable Conditional Logic for Feed 1:

  1. Navigate to the Conditional Logic section in Feed 1’s settings.
  2. Toggle on Enable Conditional Logic.
  3. Define your condition. For example:
    • Field: “Reference”
    • Condition: is
    • Value: “Google”
  4. 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.

Configuring Feed 2 in Multi Sheet Connection
Set up Feed 2 to connect to your second Google Sheet destination.

Feed 2 – Conditional Logic

To enable Conditional Logic for Feed 2:

  1. Navigate to the Conditional Logic section in Feed 2’s settings.
  2. Toggle on Enable Conditional Logic.
  3. Define your condition. For example:
    • Field: “Reference”
    • Condition: is
    • Value: “Direct”
  4. 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.

Note: Conditional Logic is context-dependent — make sure you understand the scope of the feed and field you’re configuring, especially when running multiple conditional feeds side by side.
Overview of Conditional Logic routing entries to different sheets
Entries are routed to Sheet 1 or Sheet 2 automatically based on each feed's condition.
Tip: Before saving, test each feed’s conditions with a sample submission to confirm entries land in the correct sheet. This helps you avoid routing errors once the form goes live.
Testing Conditional Logic rules across multiple feeds
Test your Conditional Logic rules to confirm each feed routes entries correctly before going live.

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.

Still not using GSheetConnector?
Quick and easy setup ⚙️ seamlessly import your settings from any other Google Sheets plugin!
👉 Learn more about the Pro Version | Download the Free Version