reCaptcha in submit button inside to the form?

hi, i try to implement recaptcha for google inside of my form, but i can’t validate if captcha is checked or not.
the idea is what the form don’t send information if recaptcha is not checked

Hola @mike30 ¿podrías compartirnos algo del código donde insertas el re-captcha para validarlo?

Saludos

Hola Cristian, la lo resolví pero te comento igualmente.
Al final el problema era por que el paquete que permite la instalación del captcha y poder usar el componente se estaba instalando con npm y por alguna razón daba errores con los tipos de datos para ts.
La solución fue instalar el paquete por yarn y eso soluciono todos los errores.

1 Like

Hello mike30, how are you? We hope you’re well.

Well, let’s see…

To implement reCAPTCHA in your form, you can follow this documentation:

If you already have everything set up, to validate it, you will need to follow some steps, such as:

  1. Make a GET request using the endpoint Get orderForm configuration.
  2. Make a POST request using the endpoint Update orderForm configuration.

To better understand these steps, you can access this VTEX dev documentation:

It contains everything you need to do for your reCAPTCHA validation to work properly.

We hope this helps. Best regards.