Actions10
- Form Actions
- Entry Actions
- Tool Action Actions
Overview
This node integrates with the Gravity Forms REST API v2, allowing users to manage forms and entries programmatically within n8n workflows. Specifically, the Form - Create operation enables creating a new Gravity Form by submitting a raw JSON payload representing the form structure.
Common scenarios for this node include automating form creation based on dynamic input, migrating forms between environments, or generating customized forms on demand without manual intervention in the Gravity Forms UI.
Example use case: Automatically create a contact form with predefined fields when setting up a new website environment, by providing the form definition as JSON.
Properties
| Name | Meaning |
|---|---|
| Form JSON | Raw Gravity Forms form object payload in JSON format. This defines the entire form structure including title, description, fields, and settings. Example placeholder: json { "title": "Contact", "description": "Generated form" } |
Output
The node outputs the newly created form object as returned by the Gravity Forms API. The output is a JSON object containing all details of the created form, such as its ID, title, description, fields, and other metadata.
No binary data output is produced by this operation.
Dependencies
- Requires an active connection to a Gravity Forms installation with REST API v2 enabled.
- Needs an API authentication credential configured in n8n (e.g., an API key or token) to authorize requests.
- The node uses internal helper functions to make HTTP requests to the Gravity Forms API endpoints.
Troubleshooting
Invalid JSON provided for Form JSON:
If the JSON payload is malformed or empty, the node will throw an error indicating invalid JSON. Ensure the JSON is correctly formatted and not empty.Unsupported form operation:
This error occurs if an unsupported operation is specified. Confirm that the operation is set to "create" for this resource.API request failures:
Errors from the Gravity Forms API (e.g., authentication errors, permission issues, or validation errors) will be propagated. Verify API credentials and the correctness of the form JSON payload.Empty form JSON:
Providing an empty string or whitespace-only string for the form JSON will cause an error. Always provide a valid JSON object.