Skip to main content
Version: v2

@friendlycaptcha/sdk > FRCWidgetStateChangeEventData

FRCWidgetStateChangeEventData interface

Payload of the "frc:widget.statechange" event.

Signature:

export interface FRCWidgetStateChangeEventData 

Properties

PropertyModifiersTypeDescription
error?WidgetErrorData(Optional) The error that caused the state change, if any. Undefined if state is not equal to "error".
idstringThe widget ID that the event originated from.
mode?WidgetMode(Optional) The WidgetMode returned from the API. Smart Mode intelligently chooses between One-click Mode ("interactive") and Zero-click Mode ("noninteractive"). The mode is configured in the Friendly Captcha dashboard.
nametypeof FRCWidgetStateChangeEventName"frc:widget.statechange"
responsestringThe current frc-captcha-response value.
stateWidgetStateThe new state of the widget.