Skip to content

Commit f48a06c

Browse files
author
Yuliya Pazniak
committed
update recaptcha
1 parent b05fcd7 commit f48a06c

File tree

2 files changed

+13
-0
lines changed

2 files changed

+13
-0
lines changed

datapress/Forms/custom-forms.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,13 @@ To prevent spam submissions from getting into your CRM, add reCAPTCHA to your fo
9090
The plugin provides a Gutenberg block, "Dataverse Plain". It accepts Twig code and renders it as HTML at front-end.
9191
Custom forms allow creating new Dataverse / Dynamics 365 rows, as well as updating existing rows.
9292

93+
:::note
94+
If you enable `recaptcha=true` in the `{% form %}` tag, you must include the `<recaptcha>` placeholder inside your form markup. This placeholder will be replaced with the actual reCAPTCHA widget at runtime.
95+
96+
Before using reCAPTCHA, make sure it is properly configured in the plugin settings. Without configuration, the form will fail to render or submit. [More details](/datapress/Forms/recaptcha.md)
97+
98+
:::
99+
93100
```php
94101
{% form entity="lead" mode="create" recaptcha=true %}
95102
<form>

datapress/Forms/recaptcha.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,12 @@ To activate reCAPTCHA for **individual forms**:
5959

6060
For custom forms, you must explicitly configure reCAPTCHA before implementation. Below is an example setup:
6161

62+
:::note
63+
If you enable `recaptcha=true` in the `{% form %}` tag, you must include the `<recaptcha>` placeholder inside your form markup. This placeholder will be replaced with the actual reCAPTCHA widget at runtime.
64+
65+
Before using reCAPTCHA, make sure it is properly configured in the plugin settings. Without configuration, the form will fail to render or submit.
66+
:::
67+
6268
```php
6369
{% set useRecaptcha = true %}
6470
{% form entity="lead" mode="create" recaptcha=useRecaptcha %}

0 commit comments

Comments
 (0)