Instantiation
Get a form
Retrieve a form’s metadata, field schema, and rendered HTML/CSS:stdClass includes:
| Property | Description |
|---|---|
title | Display name of the form |
form_json | Parsed field schema |
form_html | Rendered HTML for embedding |
form_css | Associated stylesheet |
active | Whether the form is accepting submissions |
submission_count | Number of submissions received |
getForm throws \Exception if the form is not found or the response is invalid.
Submit a form
submitForm returns true on a successful submission (HTTP 201) and throws \Exception on failure with a message containing the HTTP status code and response body.
Submitting with file attachments
The maximum total request size is 250 MB.FormAttachment fields:
| Field | Description |
|---|---|
name | File name including extension |
content | Base64-encoded file content |