Controlling a native Hubspot form using api or javascript
SOLVE
Hey Guys,
We have been getting an insane amount of spam emails through our lead forms. Captcha isnt working and blocking the domains are not working as well. We decided to sign-up for Neverbounce and use their API to validate the email address on the form.
Are you able to control a native Hubspot form using the API or Javascript on the the Hubspot landing page? Can i can control it by stopping the form submission and connecting the Neverbounce API to validate the email address and if its valid...submit the form?
According to this post: https://community.hubspot.com/t5/APIs-Integrations/Prevent-Form-submission-after-successful-Validati... It's not possible to control the form using the onFormSubmit callback. Another thing is that im not using the form embed code becasue my website is hosted in Hubspot...im using the form builder in Hubspot. On top of that, i tried that exact same code (outside of hubspot... externally) in that post using the onFormReady callback and it didn't work.
You aren't trying to not submit the form, correct? You just want to delay it for additional validation via this third party API. Am I reading that correctly 😬
You can use the embed code in HubSpot. You could make a custom module for it for easy use for the marketing team.