Skip to content

How to get widget id? #5

@VIEWVIEWVIEW

Description

@VIEWVIEWVIEW

According to the docs the render function will return the widget-id:

If the invocation is successful, the function returns a widgetId (string). If the invocation is unsuccessful, the function returns undefined.

-- https://developers.cloudflare.com/turnstile/get-started/client-side-rendering/

I need this widgetId to call window.turnstile.reset(widgetId) in order to reset the captcha.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions