JavaScript: Props
Plain JavaScript uses constructor options rather than component props.
| Name | Type | Default | Description |
|---|---|---|---|
spaceId | string | — | Required space ID. |
formId | string | — | Required form ID. |
language | string | — | Required translation key. |
config | UserConfig | undefined | Optional complete user config. |
Public methods
| Method | Purpose |
|---|---|
attach(container) | Attach the renderer to an HTML element. |
load(getData) | Load form data through an asynchronous callback and render it. |
on(event, callback) | Subscribe to a renderer event. |
updateItem(id, value) | Programmatically update a field value and rerender. |
submit(data) | Run the submit and configured email workflow with a SubmitData object. |