Gravity Forms

Getting Started with Gravity Forms

Prerequisites:

  • A Gravity Forms account

  • REST API enabled and the API Key created

In order to use Gravity Forms with Make, it is necessary to have a Gravity Forms account. If you do not have one, you can create a Gravity Forms account at www.gravityforms.com.

To connect your Gravity Forms account to Make you need to obtain the Consumer Key and the Consumer Secret.

1. Log in to your WordPress that has Gravity Forms installed.

2. Go to your Gravity Forms settings (Forms > Settings).

61f26fc96376e.gif

2. Open REST API settings.

61f26fcbae175.png

3. Enable access to the API and click on the Add Key button.

61f26fcd04d8a.gif

4. Enter the API Key description and change the Permission to Read/Write. Then click on the Add Key button.

61f26fcf5f2c3.gif

5. Copy and save the provided Consumer Key and Consumer Secret.

61f26fd19e6a8.png

6. Go to the Gravity Form module's Create a connection dialog and insert your Host URL (make sure your URL starts with https://), and the provided Consumer Key and Consumer Secret into respective fields.

61f26fd2d539d.png

Watch Entries

Triggers when the selected form is submitted.

Connection

Establish a connection to your Gravity Forms account.

Form

Select the form you want to watch for submissions. If no form is selected, all forms will be watched for submissions.

Maximum number of returned entries

Set the maximum number of form submissions Make will return during one cycle.

Remove a Feed

Removes a specified feed.

Connection

Establish a connection to your Gravity Forms account.

Feed ID

Enter (map) the Feed ID of the feed you want to delete.

Note

The Feed ID can be retrieved using the List Feeds module.

Get Form Results

Retrieves form details, including the submitted results.

Connection

Establish a connection to your Gravity Forms account.

Form ID

Enter (map) the Form ID of the form you want to get results from.

Important

The Feed ID can be retrieved using the List Forms module.

Get an Entry

Retrieves specified entry details.

Connection

Establish a connection to your Gravity Forms account.

Entry ID

Enter (map) the Entry ID of the entry you want to retrieve details about.

Form ID

Enter (map) the Form IDof the form that contains the entry you want to retrieve information about.

Fill only if you would like to see fields as questions instead of IDs.

Get a Form

Retrieves details of a form.

Connection

Establish a connection to your Gravity Forms account.

Form ID

Enter (map) the Form ID of the form you want to retrieve details about.

Remove an Entry

Moves the specified entry to the trash or deletes the entry permanently.

Connection

Establish a connection to your Gravity Forms account.

Entry ID

Enter (map) the Entry ID of the entry you want to delete or move to the trash.

Permanently

Select whether to delete the entry permanently or move the entry to the trash.

Remove a Form

Moves the specified form to the trash or deletes the form permanently.

Connection

Establish a connection to your Gravity Forms account.

Form ID

Enter (map) the Form ID of the form you want to delete or move to the trash.

Permanently

Select whether to delete the form permanently or move the form to the trash.

List Entries of a Form

Retrieves entries associated with a specified form.

Connection

Establish a connection to your Gravity Forms account.

Form ID

Enter (map) the Form ID of the form that contains entries you want to list.

Number of entries to return

Set the maximum number of entries Make will return during one cycle.

Search Filters

Here you can set the filter for your search.

Sorting

Key - Select whether you want to sort entries by creation date, update date, ID, or Form ID.

Direction - Select the sort order of the results.

Numeric - Enable this option if the key is numeric.

List Entries

Retrieves all entries from your Gravity Forms.

Connection

Establish a connection to your Gravity Forms account.

Number of entries to return

Set the maximum number of entries Make will return during one cycle.

Sorting

Key - Select whether you want to sort entries by creation date, update date, ID, or Form ID.

Direction - Select the sort order of the results.

Numeric - Enable this option if the key is numeric.

List Feeds

Retrieves all feeds from your Gravity Forms.

Connection

Establish a connection to your Gravity Forms account.

Number of feeds to return

Set the maximum number of feeds Make will return during one cycle.

List Forms

Retrieves details of all forms.

Connection

Establish a connection to your Gravity Forms account.

Number of forms to return

Set the maximum number of forms Make will return during one cycle.

Make an API Call

Allows you to perform a custom API call.

Connection

Establish a connection to your Gravity Forms account.

URL

Enter a path relative to https://<YourWebsiteWithGravityForms.com>/wp-json/gf/v2/. E.g. forms

Note

For the list of available endpoints, refer to the Gravity Forms REST API documentation.

Method

Select the HTTP method you want to use:

GET to retrieve information for an entry.

POST to create a new entry.

PUT to update/replace an existing entry.

PATCH to make a partial entry update.

DELETE to delete an entry.

Headers

Enter the desired request headers. You don't have to add authorization headers; we already did that for you.

Query String

Enter the request query string.

Body

Enter the body content for your API call.

Example of Use - List All Forms

The following API call returns all forms:

61f26fd3d5cb2.png

Matches of the search can be found in the module's Output under Bundle > Body. In our example, 13 forms were returned:

61f26fd4dab9d.png