Skip to main content
Version: v2

@friendlycaptcha/sdk > CreateWidgetOptions > startMode

CreateWidgetOptions.startMode property

The start mode determines the behavior around automatic activation of the widget. Activation here means the challenge gets requested and gets solved. Defaults to "focus".

* "auto": the widget gets activated as soon as it is created. * "focus": the widget gets activated as soon as the form above it is focused. * "none": The widget does not start automatically at all, the user needs to press the widget.

Signature:

startMode?: StartMode;