New submission on Collected FormsSOLVE
May 19, 2020 11:54 AM
Solved! Go to Solution.
May 22, 2020 12:52 PM
Thanks for your reply!
I understand that you are suggesting client-side validation, which would definitely work, however, at the cost of form security. It’s pretty easy to break client-side JS validation. Thus, it would still require server-side validation to ensure maximum form processing security. Also, the captcha is processed via Google api so I don’t think that client-side would work either (not 100% on that)
Otherwise, you could use the Hubspot forms code to embed on your site. Or if you prefer to keep your own form and code in PHP, you could disable the non-Hubspot forms feature, and then rely on your PHP script to only post to Hubspot via the API after a successful validation ( https://developers.hubspot.com/docs/methods/forms/submit_form ).