diff --git a/docs/guide/index.md b/docs/guide/index.md index ea2294c..032d499 100644 --- a/docs/guide/index.md +++ b/docs/guide/index.md @@ -52,7 +52,7 @@ widget.addEventListener("solve", function (e) { }); ``` -Alternatively, you can use `onsolve=""` directly within the widget or wrap the widget in a `
` (where Cap will automatically submit the token alongside other form data). +Alternatively, you can use `onsolve=""` directly within the widget or wrap the widget in a `
` (where Cap will automatically submit the token alongside other form data. for this, it'll create a hidden field with name set to its `data-cap-hidden-field-name` attribute or `cap-token`). ## Server-side diff --git a/docs/guide/widget.md b/docs/guide/widget.md index b27e078..141e47b 100644 --- a/docs/guide/widget.md +++ b/docs/guide/widget.md @@ -47,7 +47,7 @@ widget.addEventListener("solve", function (e) { }); ``` -Alternatively, you can use `onsolve=""` directly within the widget or wrap the widget in a `
` (where Cap will automatically submit the token alongside other form data). +Alternatively, you can use `onsolve=""` directly within the widget or wrap the widget in a `
` (where Cap will automatically submit the token alongside other form data. for this, it'll create a hidden field with name set to its `data-cap-hidden-field-name` attribute or `cap-token`). ## Compatibility version