AnonymousFormProps
@gravity-rail/react / AnonymousFormProps
Interface: AnonymousFormProps
Properties
className?
optionalclassName:string
Extra className on the form element.
formUuid
formUuid:
string
UUID of a Form whose anonymous submissions are enabled.
getRecaptchaToken()?
optionalgetRecaptchaToken: () =>Promise<string>
Override token acquisition for a custom host. Source-sites use the first-party bridge by default.
Returns
Promise<string>
onError()?
optionalonError: (error) =>void
Called on schema, token, or submission failure.
Parameters
error
Error
Returns
void
onSuccess()?
optionalonSuccess: () =>void
Called after the server acknowledges receipt.
Returns
void
submitLabel?
optionalsubmitLabel:string
Submit button label.
workspaceUuid
workspaceUuid:
string
Workspace containing the public Form.