BetterForms Trigger icon

BetterForms Trigger

Serve a form schema on GET, trigger workflow on POST submission

BetterForms Trigger

AI-generated

Summary

Serve a form schema via webhook GET requests and trigger the workflow upon receiving form submission data through webhook POST requests at a configurable path.

Inputs

  • Webhook Path (required) — The path segment for the webhook URL where the form schema is served (GET) and submissions are received (POST).
  • Form Schema (JSON) (required) — The JSON schema of the form designed with the BetterForms Form Builder, defining form fields, labels, validation, and messages. GET requests to the webhook path return this schema.
  • CORS Origins — Comma-separated list of allowed origins for CORS or '*' to allow all origins.

Output shape

A single item containing a JSON object of the submitted form data upon POST requests to the webhook path.

GET requests to the configured webhook path return the form schema JSON including a submitUrl property for form submissions. POST requests with submission data parse the form data, including special parsing for "address" type fields, and return a JSON success response with an optional redirect URL. Workflow is triggered only on POST submissions. CORS headers are set according to the CORS Origins input.

Links

Discussion