You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
|`sitekey`|`data-sitekey`| Every widget has a sitekey. This sitekey is associated with the corresponding widget configuration and is created upon the widget creation. |
252
-
|`action`|`data-action`| A customer value that can be used to differentiate widgets under the same sitekey in analytics and which is returned upon validation. This can only contain up to 32 alphanumeric characters including `_` and `-`. |
253
-
|`cData`|`data-cdata`| A customer payload that can be used to attach customer data to the challenge throughout its issuance and which is returned upon validation. This can only contain up to 255 alphanumeric characters including `_` and `-`. |
254
-
|`callback`|`data-callback`| A JavaScript callback invoked upon success of the challenge. The callback is passed a token that can be validated. |
255
-
|`error-callback`|`data-error-callback`| A JavaScript callback invoked when there is an error (e.g. network error or the challenge failed). Refer to [Client-side errors](/turnstile/troubleshooting/client-side-errors/). |
256
-
|`execution`|`data-execution`| Execution controls when to obtain the token of the widget and can be on `render` (default) or on `execute`. Refer to [Execution Modes](/turnstile/get-started/client-side-rendering/#execution-modes) for more information. |
257
-
|`expired-callback`|`data-expired-callback`| A JavaScript callback invoked when the token expires and does not reset the widget. |
258
-
|`before-interactive-callback`|`data-before-interactive-callback`| A JavaScript callback invoked before the challenge enters interactive mode. |
259
-
|`after-interactive-callback`|`data-after-interactive-callback`| A JavaScript callback invoked when challenge has left interactive mode. |
260
-
|`unsupported-callback`|`data-unsupported-callback`| A JavaScript callback invoked when a given client/browser is not supported by Turnstile. |
261
-
|`theme`|`data-theme`| The widget theme. Can take the following values: `light`, `dark`, `auto`. <br/><br/>The default is `auto`, which respects the user preference. This can be forced to light or dark by setting the theme accordingly. |
262
-
|`language`|`data-language`| Language to display, must be either: `auto` (default) to use the language that the visitor has chosen, or an ISO 639-1 two-letter language code (e.g. `en`) or language and country code (e.g. `en-US`). Refer to the [list of supported languages](/turnstile/reference/supported-languages/) for more information. |
263
-
|`tabindex`|`data-tabindex`| The tabindex of Turnstile's iframe for accessibility purposes. The default value is `0`. |
264
-
|`timeout-callback`|`data-timeout-callback`| A JavaScript callback invoked when the challenge presents an interactive challenge but was not solved within a given time. A callback will reset the widget to allow a visitor to solve the challenge again. |
265
-
|`response-field`|`data-response-field`| A boolean that controls if an input element with the response token is created, defaults to `true`. |
266
-
|`response-field-name`|`data-response-field-name`| Name of the input element, defaults to `cf-turnstile-response`. |
267
-
|`size`|`data-size`| The widget size. Can take the following values: `normal`, `flexible`, `compact`. |
268
-
|`retry`|`data-retry`| Controls whether the widget should automatically retry to obtain a token if it did not succeed. The default is `auto`, which will retry automatically. This can be set to `never` to disable retry on failure. |
269
-
|`retry-interval`|`data-retry-interval`| When `retry` is set to `auto`, `retry-interval` controls the time between retry attempts in milliseconds. Value must be a positive integer less than `900000`, defaults to `8000`. |
270
-
|`refresh-expired`|`data-refresh-expired`| Automatically refreshes the token when it expires. Can take `auto`, `manual`, or `never`, defaults to `auto`. |
271
-
|`refresh-timeout`|`data-refresh-timeout`| Controls whether the widget should automatically refresh upon entering an interactive challenge and observing a timeout. Can take `auto` (automatically refreshes upon encountering an interactive timeout), `manual` (prompts the visitor to manually refresh) or `never` (will show a timeout), defaults to `auto`. Only applies to widgets of mode managed. |
272
-
|`appearance`|`data-appearance`| Appearance controls when the widget is visible. It can be `always` (default), `execute`, or `interaction-only`. Refer to [Appearance modes](/turnstile/get-started/client-side-rendering/#appearance-modes) for more information. |
273
-
|`feedback-enabled`|`data-feedback-enabled`| Allows Cloudflare to gather visitor feedback upon widget failure. It can be `true` (default) or `false`. |
0 commit comments