- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page
New submission on Collected Forms
SOLVEMay 19, 2020 11:54 AM
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
Accepted Solutions
May 22, 2020 12:52 PM
@resoiso wrote:
@Ben_M,
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)
Cheers,
Doug
Not necessarily. What you need is client side scripting to either validate, or trigger your validation at the time of the event and not after a successful submission. So that could either mean simple javascript validation, which as you know is not the best, or using AJAX to call your validation script prior to a successful form submission. If you don't do this the non-Hubspot forms feature will continue to see success because there is success in your submission even though validation is failing.
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 ).
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content