... Just wondering instead of using //js.hsforms.net/forms/embed/v2.js, would using //js.hsforms.net/forms/embed/v3.js be ok?
Context: We embedded the form with no issues as an iframe, but we need it as a raw HTML form instead. After switching it to a HTML form, the captcha on the form stopped working.
I think so.. looks like the form will try to fetch `/embed/v3/form/<portal_id>/<form_id>/json` and that errors:
I just received this response: ```json { "status": "error", "message": "You cannot fetch this type of form using this endpoint. Not an Embed version 2 or 3 form", "correlationId": "a408499a-..." } ```
Support didn't help me, but I went ahead and used v3 anyway with no problems. At your own risk. We monitored the form closely to make sure there weren't any issues and it was ok until we switched to the newer form.
As of now, the documentation only references //js.hsforms.net/forms/embed/v2.js as the standard embed script URL, there isn’t any official guidance about using v3 at this time.
Regarding CAPTCHA, there are some limitations when handling CAPTCHA with raw HTML forms and the Forms API.
Form submissions via the API that include CAPTCHA tokens may return errors, so we recommend implementing your own spam protection system before sending data through the API.
I think so.. looks like the form will try to fetch `/embed/v3/form/<portal_id>/<form_id>/json` and that errors:
I just received this response: ```json { "status": "error", "message": "You cannot fetch this type of form using this endpoint. Not an Embed version 2 or 3 form", "correlationId": "a408499a-..." } ```