PRO

Google Drive Integration

The Google Drive integration allows you to configure file fields to upload directly to a connected Google Drive account. You can choose which path to upload the files to and can easily access the files from the submissions page.

The integration creates a new file handler to WS Form called Google Drive.

Installation

The Google Drive integration is installed in the same way as installing the WS Form PRO plugin.

Once installed you will need to activate the license for the plugin. When you purchase the Google Drive integration, you will be given a license key. If you have lost your license key(s), click here.

To activate your license key:

  1. Click WS Form in the WordPress administration menu.
  2. Click Settings.
  3. Click the Google Drive tab at the top of the page.
  4. Enter your license key.
  5. Click the Activate button.

If your license key fails to activate, please ensure you are using the correct license key and not your WS Form PRO license key.

Connecting to Google Drive

In order to use the integration, you need to connect it to Google Drive. Connecting is easy!

  1. Click WS Form in the WordPress administration menu.
  2. Click Settings.
  3. Click the Google Drive tab at the top of the page.
  4. Click Connect and follow the onscreen prompts

WS Form PRO - Google Drive Integration - Connect

If you do not have a Google Drive account, you can create a new account here.

How to Configure File Fields for Google Drive

To configure a file field to push its uploads to Google Drive:

  1. Click the settings icon on the file field.
WS Form - Field Settings Icon
  1. In the basic tab change the File Handler setting to Google Drive.
WS Form PRO - Google Drive Integration - File Handler
  1. Optionally, change the Upload path. The upload path defaults to:/WS Form/#form_id/#submit_hash/#field_id/

    You can use WS Form variables in this path to make it dynamic. The default value ensures each form, submission and field on the form is given its own folder in Google Drive to minimize the chance of files being overwritten. Bear in mind that each file field can be configured with the Multiple setting to be able to upload more than one file.

    Some variables you might find helpful for this path are:

Variable Description
#form_id Returns the ID of the form.
#submit_hash A unique identifier for the submission.
#field_id The ID of the file field.
  1. Optionally, specify the Root Folder ID.

    The root folder ID defaults to My Drive (blank).

    To upload files to a Shared Folder, click on the folder in Google Drive and copy the folder ID from the address bar. For example:

    In this example, the Root Folder ID you would enter would be: 14CRFg10wD77EWTCV4ewlm_cbS7tduXoL

    To upload files to a Shared Drive, copy the shared drive ID from the URL in the same manner. Shared drive IDs begin with 0A.

WS Form - Google Drive Integration - Obtaining a Shared Folder ID
WS Form - Google Drive Integration - Root Folder ID Setting

Accessing Google Drive Uploads

To access the files that are uploaded to Google Drive, you can click on the file upload icons in submissions as you would any other file upload. The files are, of course, also accessible from within your Google Drive folder.

WS Form - Google Drive Integration - Submissions