Developer guide

Next.js: Props

These are the inputs accepted by the Next.js integration. Event callback props are also shown where the framework uses callbacks instead of emitted template events.

NameTypeDefaultDescription
spacestringThe space ID that owns the form. Required.
formstringThe form ID to render. Required.
languagestring'en'Translation key used by the form UI.
configUserConfig{}Action settings, translations, and class-name mappings.
initialFormDataFormundefinedPreloaded form data. Skips the initial client-side request when supplied.
getFormData(space, form) => Promise<Form>undefinedServer-component form loader.
input(data: UserData) => voidundefinedField-change callback. Available on JCeesFormsClient.
reset() => voidundefinedForm-reset callback. Available on JCeesFormsClient.
submit(data: SubmitData) => voidundefinedSubmit-attempt callback. Available on JCeesFormsClient.
mailSend(data: { success: boolean }) => voidundefinedConfigured email-delivery callback. Available on JCeesFormsClient.
Server-side data

Use getFormData(space, form) to provide a custom server-side loader, or initialFormData when your application has already loaded the form.