Developer guide

JavaScript: Props

Plain JavaScript uses constructor options rather than component props.

NameTypeDefaultDescription
spaceIdstringRequired space ID.
formIdstringRequired form ID.
languagestringRequired translation key.
configUserConfigundefinedOptional complete user config.

Public methods

MethodPurpose
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.