From b5e200e05e71c41bb2c9607b42066eb30274e2e1 Mon Sep 17 00:00:00 2001 From: Tiago <70700766+tiagorangel1@users.noreply.github.com> Date: Wed, 23 Apr 2025 14:52:50 +0100 Subject: [PATCH] add docs for data-cap-hidden-field-name --- docs/guide/index.md | 2 +- docs/guide/widget.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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