Custom captcha in an embedded form

Do you have any suggestion how a custom captcha could be integrated with the embedded form? We were looking at https://legacydocs.hubspot.com/docs/methods/forms/advanced_form_options and thinking to use for example the onBeforeFormSubmit function to verify that the custom captcha was completed before submitting the form. Do you believe something like this is feasible? Do you have any experience from peers doing similar things?

Hi @aravindsanal ,

There are two ways I solved this problem;

1. Create a custom HTML form and do the validation there, use either the Form Submit API to submit the form or store the data in hidden inputs in a hidden HubSpot form.
2. Add a required field in your form, you can name it whatever you want, hide that field with CSS or JavaScript, and after the captcha was completed, set a value in the hidden required input. Users can not submit the form as long as the input has no value. This is my preferred method.