Google Sheets Addon

Would you like to automatically send form entry data to Google Sheets? The Google Sheets addon for WPForms provides a simple method for sending your form entries directly to a Google spreadsheet.

In this tutorial, we’ll show you how to install and use the Google Sheets addon in WPForms.

Requirements: You will need a Pro license level or higher to access the Google Sheets addon.


Before getting started, you’ll first need to make sure WPForms is installed and activated on your WordPress site and that you’ve verified your license. You will also need to sign up for a Google account if you don’t already have one.

Accessing Google Sheets Integration Settings

Once you’ve installed WPForms and your license is verified, go ahead and install and activate the Google Sheets addon.

After installing the Google Sheets addon, you’ll need to access the Google Sheets integration settings. To do this from the WordPress dashboard, go to WPForms » Settings and click on the Integrations tab.

click-integrations-tab

Next, click on the Google Sheets integration to expand its settings.

click-google-sheets

Connecting WPForms to Google Sheets

To connect WPForms to your Google account, go ahead and click the Add New Account button.

click-add-new-account-button

You’ll then be redirected to a Google authentication page where you’ll need to select a Google account to use with WPForms.

Once you’ve selected a Google account, be sure to grant WPForms access to your account by clicking the Allow button.

allow-wpforms-to-access-google-account

Note: To learn more about the Google permissions needed for WPForms, check out our documentation on Google permissions for the Google Sheets addon. If you prefer not to share your Google data with WPForms, you can connect via a custom Google application instead.

Now when you return to WPForms » Settings » Integrations, you should see the green Connected status along with your connection details.

google-sheets-connected-status

Note: The Google Sheets addon only supports one Google account connection at a time.

Connecting via a Custom Google Application

Note: Connecting WPForms to a custom Google application is only recommended for developers or advanced users. If you don’t need a custom application, please feel free to skip this section and proceed to learn how to add a Google Sheets integration to your form.

To get started with your Google application connection, click Enable Advanced Mode located in your Google Sheets integration settings.

click-enable-advanced-mode

You’ll now see additional settings where you’ll need to enter information from the Google Cloud Platform.

advanced-mode-connection-settings

We’ll skip this step for now, as you’ll first need to log in to the Google Cloud Platform to create a custom application. However, we recommend leaving your WPForms settings open in a separate browser tab while you create your application, as you’ll need to access them later.

Adding a New Project

Once you’ve logged in to the Google Cloud Platform, click APIs & Services.

click-apis-and-app-services

On the next screen, click the projects dropdown menu.

click-project-dropdown

After that, an overlay will appear that shows your projects. Go ahead and click NEW PROJECT.

click-new-project

Next, you’ll need to add a name to the Project name field. We recommend using a name that will help you remember what you’re using the project for; however, you can use whatever name you’d like.

After adding a name, click the CREATE button.

add-project-name-and-click-create

Once you’ve created your project, click the project dropdown again.

click-project-dropdown

Now, click on the name of your new project in the overlay that appears.

click-new-project-name

Enabling Google APIs

Now that your project is created, it’s time to enable some Google APIs. To start, click Library in the left side menu.

click-library

This will take you to the API Library where you’ll need to locate and enable 2 different APIs: Google Drive API and Google Sheets API.

Type “Google Drive API” in the search bar to locate the Google Drive API.

search-google-drive-api

Once you’ve located the Google Drive API, click the ENABLE button.

click-enable-google-drive-ap

Next, head back to Google’s API library and type “Google Sheets API” in the search bar.

search-google-sheets-api

After locating the Google Sheets API, click the ENABLE button.

click-enable-google-sheets-api

Selecting a User Type

Now that you’ve enabled the required APIs, click OAuth consent screen in the left side menu.

click-oauth-consent-screen

On the next screen, you’ll need to select a User Type for your application. You can select either Internal or External, depending on who you’d like to share your app with.

For our example, we’ll select External. Once you’ve made your selection, click the CREATE button to proceed.

click-create-button-oauth-consent

Note: Be sure to check out Google’s documentation on user types to learn more about External and Internal users.

Registering Your App

After you’ve selected a User Type for your app, you’ll redirect to a page to complete your app registration. You’ll need to complete a series of steps to register your app, which we’ll cover in the following sections.

Adding App Information

Adding information about your app is required and allows users to know who you are and how to contact you.

In the required fields, be sure to add an App name and User support email.

app-registration-name-and-support-email

Adding an App Domain

Scroll down to the App domain section and locate the Authorized domains section. From here, click the ADD DOMAIN button.

click-add-domain-button

In the Authorized domain 1 field, you’ll need to add wpforms.com as your domain.

add-wpforms-domain

Note: You must add wpforms.com as your authorized domain, or your app will fail to connect to WPForms.

Adding Developer Contact Information

Next, add your preferred email address in the Developer contact information section. Google will contact you at this email address if there are any changes to your project.

developer-email-address

Finally, click the SAVE AND CONTINUE button to proceed to the next step.

click-save-and-continue

Adding Scopes

On the next screen, click the ADD OR REMOVE SCOPES button.

click-add-or-remove-scopes

In the side modal that appears, click on the search bar labeled Enter property name or value.

enter-property-name-or-value-search-bar

Then, go ahead and search for each of the following scopes:

  • https://www.googleapis.com/auth/userinfo.email
  • https://www.googleapis.com/auth/userinfo.profile
  • https://www.googleapis.com/auth/drive.metadata.readonly
  • https://www.googleapis.com/auth/spreadsheets

You’ll need to enable each of the above scopes by clicking the checkbox on the left side.

click-checkbox-to-enable-scope

Once you’ve enabled the required scopes, click the UPDATE button located at the bottom of the screen.

click-update-button

You’ll then return to the Scopes screen where you can view and manage your enabled scopes. From here, go ahead and click the SAVE AND CONTINUE button to save your changes.

click-save-and-continue-scopes-screen

Adding Test Users

Google will need to complete the verification process before users can interact with your app. However, you can allow specific users to test your app before it’s verified. This step isn’t required for our setup, so we’ll go ahead and move to the next step by clicking the SAVE AND CONTINUE button.

click-save-and-continue-test-users-screen

Reviewing Your App Registration

The last step of the app registration is to review your configuration on the Summary screen. If everything looks correct and corresponds with the steps in this tutorial, click the BACK TO DASHBOARD button at the bottom of the screen.

click-back-to-dashboard-button

Publishing Your App

Now that you’ve completed the app registration, you’ll need to publish your app. You can do this directly from the Oauth consent screen by clicking on the PUBLISH APP button.

click-publish-app

After clicking the button, a modal will with some further steps for completing Google’s app verification process. To confirm, click CONFIRM.

click-confirm

Creating Credentials for Your Application

The next step is to create credentials for your application. To get started, click Credentials in the left side menu.

click-credentials

Then, click the CREATE CREDENTIALS dropdown at the top of the Credentials screen.

click-create-credentials

After that, click OAuth client ID.

select-oauth-client-id

Next, click the Application type dropdown and select Web application.

select-web-application

After that, be sure to enter a name for your Oauth 2.0 client in the Name field. This won’t be visible to end users, so feel free to name it whatever you’d like.

add-name-for-client-id

Next, scroll to the Authorized redirect URIs section and click ADD URI.

click-add-uri-button-1

Now you’ll need to head back to your WPForms integration settings and copy the first Callback URL by clicking the copy icon.

click-copy-icon-callback-url-1

Then, switch back to your Google application settings and paste the Callback URL into the URIs 1 field.

paste-callback-url-into-uri-1-field-1

After that, click the ADD URI button again so you can add your 2nd URI.

click-add-uri-button-2

Switch back to your WPForms settings and click the copy icon next to the 2nd Callback URL.

click-copy-icon-callback-url-2

Now you can navigate back to your Google settings and paste the 2nd Callback URL into the URIs 2 field.

add-second-callback-url

Next, click the CREATE button.

click-create-button-client-id

A modal window will then appear with your OAuth client credentials. From here, copy the Client ID by clicking the copy icon.

click-copy-icon-client-id

Then, switch over to your WPForms integration settings and paste the Client ID into the Google Client ID field.

client-id-field

Next, navigate back to your Google application settings and copy the Client Secret.

click-copy-icon-client-secret

Switch over to your WPForms integration settings once more and paste the Client Secret into the Google Client Secret field.

paste-client-secret

Completing the Connection

Now that you have your Client ID and Client Secret in place, it’s time to complete the connection. To do this, click the Connect to Google Sheets button.

click-connect-to-google-sheets-button

Next, you’ll redirect to a Google authentication page. Here you’ll need to grant WPForms access to your Google account.

Once you’ve selected a Google account, check the boxes next to See information about your Google Drive files and See, edit, create, and delete all your Google Sheets spreadsheets.

checkboxes-for-google-drive-and-sheets

Finally, click Continue to complete the connection.

click-continue-button-google-access

Now when you return to WPForms » Settings » Integrations, you should see the green Connected status along with your connection details.

google-sheets-connected-status

Adding a Google Sheets Integration to Your Form

Now that you’ve successfully connected WPForms to your Google account, it’s time to add a Google Sheets integration to your form. To do this, you’ll need to create a new form or edit an existing one to open the form builder.

Once you’ve accessed the form builder, go to Settings » Google Sheets and click the Add New Connection button.

select-add-new-connection-button

Next, an overlay will appear where you can enter a connection nickname. Feel free to use any nickname you’d like, as this won’t be visible to your users. Once you’ve added a nickname, click the OK button.

add-nickname-and-click-ok

After you add a connection nickname, additional settings will appear, which we’ll cover in the next section.

Configuring Connection Settings

First, click the Spreadsheet dropdown to select a spreadsheet.

select-a-spreadsheet-dropdown

When you click on the dropdown, you’ll see options to create a new spreadsheet or select an existing spreadsheet that you already have in your Google account. You can also use the search bar to search for a specific spreadsheet you’ve already created in your Google account.

Note: Only Google spreadsheets you have permission to edit will appear in the list of available spreadsheets. Check out Google’s documentation on sharing files from Google Drive to learn more about access permissions.

For this example, we’ll create a new spreadsheet by selecting the Create a New Spreadsheet option.

create-a-new-spreadsheet

Additional settings will appear after you select a spreadsheet. Although it’s optional, we recommend adding a name to the Spreadsheet Name and Sheet Name fields to help you keep track of your spreadsheet.

spreadsheet-and-sheet-names

Once you’ve connected your form to a Google spreadsheet, a link icon will appear under the Spreadsheet section of your connection settings.

Go ahead and click the link icon to open your Google spreadsheet in a new browser tab.

click-link-icon

Mapping Form Fields to Google Sheets

Under the Field Mapping option, you’ll see two columns for mapping your form fields to your spreadsheet: Column Name and Form Field Value.

column-name-and-form-field-value

By default, WPForms maps the Entry ID to Column A of your spreadsheet.

default-entry-id-custom-value

When the form submission is added to your spreadsheet, the Entry ID will appear as a link in Column A. Clicking the Entry ID link will take you to the individual entry page for that particular form submission.

entry-id-link-in-google-sheets

If you’d like to map form data to a new column, simply click the Column Name dropdown and select your desired column.

select-a-column

Then, you’ll need to select a form field you’d like to map to the column in your Google spreadsheet. To select a form field, click the Form Field Value dropdown and click on the form field you’d like to use.

For our example, we’ll select the Name field.

select-name-field

In our Google spreadsheet, we’ll now have a column where we can see the names of users who submit our form.

name-mapped-to-google-sheets

Adding a Custom Value

Instead of selecting a field from your form to map to your spreadsheet, you can use a Custom Value, such as a Smart Tag or Google Sheets formula.

To add a custom value, click the Form Field Value dropdown and select Custom Value.

select-custom-value

Then, a new field will appear where you can insert your custom value.

If you’d like to use a Smart Tag for the custom value, go ahead and click the Smart Tag.

click-smart-tag-icon

You’ll then see a list of available Smart Tags. For our example, we’ll select the Entry Date Smart Tag so we can quickly see the date of the form submission in our spreadsheet.

select-entry-date-smart-tag

Note: Want to learn more about Smart Tags? Be sure to check out our guide to using Smart Tags in WPForms.

Now when a user submits our form, we’ll see the date of the form submission will appear in our Google spreadsheet.

entry-date-mapped-to-google-sheet.png

Note: The Google Sheets addon also supports conditional logic. Be sure to check out our guide to using conditional logic to learn more.

Once you’re finished configuring your connection settings, be sure to save your form by clicking the Save button.

click-to-save-form

Frequently Asked Questions

Below are some of the most common questions we receive about using the Google Sheets addon with WPForms.

I have a lot of spreadsheets in my Google account. Why don’t I see all of my spreadsheets when I try to select one to use with WPForms?

Please double-check your access permissions for the specific Google spreadsheet you’d like to use. Only Google spreadsheets you have permission to edit will appear in the list of available spreadsheets to select. To learn how to request Editor access, check out Google’s documentation on sharing files from Google Drive.

Once you have Editor access, the list of available spreadsheets may take a few minutes to update in your WPForms settings.

That’s it! Now you know how to set up and use the Google Sheets addon for WPForms.

Next, would you like to learn more about what you can do with user-submitted information in WPForms? Be sure to check out our complete guide to form entries to learn more.