Gravity Forms icon

Gravity Forms

Interact with Gravity Forms REST API v2

Actions10

Overview

This node integrates with the Gravity Forms REST API v2, allowing users to interact with forms and entries stored in a Gravity Forms installation. Specifically, the "Form - Get" operation retrieves detailed information about a single form by its numeric ID. This is useful when you want to fetch the structure, metadata, or configuration of a specific form for further processing, reporting, or automation.

Practical examples include:

  • Fetching a form's details to display or analyze its fields and settings.
  • Using the form data to dynamically generate UI elements or validate submissions.
  • Integrating form metadata into other workflows or systems.

Properties

Name Meaning
Form ID Numeric ID of the form to retrieve. This identifies which form's details will be fetched from Gravity Forms.

Output

The output is a JSON object representing the full details of the requested form as returned by the Gravity Forms API. This includes all metadata such as form ID, title, description, fields, settings, and other configuration details.

Example structure (simplified):

{
  "id": 123,
  "title": "Contact Us",
  "description": "A simple contact form",
  "fields": [
    {
      "id": 1,
      "label": "Name",
      "type": "text",
      "isRequired": true
    },
    {
      "id": 2,
      "label": "Email",
      "type": "email",
      "isRequired": true
    }
  ],
  ...
}

The node does not output binary data.

Dependencies

  • Requires an API key credential for authenticating with the Gravity Forms REST API v2.
  • The node depends on the Gravity Forms REST API being accessible and properly configured on the target WordPress site.
  • No additional environment variables are required beyond the API authentication setup.

Troubleshooting

  • Empty or invalid Form ID: If the "Form ID" property is empty or not a valid number, the node will throw an error indicating that the Form ID must not be empty.
  • Invalid JSON input: Although not applicable for this operation, other operations that accept JSON input validate it strictly and will throw errors if malformed.
  • API connectivity issues: Errors may occur if the Gravity Forms API endpoint is unreachable or credentials are incorrect. Verify API URL, credentials, and network access.
  • Unsupported operation or resource: The node throws clear errors if an unsupported resource or operation is specified.
  • Continue on Fail: If enabled, the node will return error messages in the output JSON instead of stopping execution.

Links and References

Discussion