Lead Capture Tools

AndrewinKC
Contributor

Using a third-party email validation tool with Hubspot forms

Has anyone been able to use a third-party email validation service API with the standard Hubspot forms? I would like to validate email addresses entered on our forms before someone could submit. We get a lot of invalid email address that I have to manually validate and then remove form our database.

 

Thanks,

 

AndrewinKC

2 Replies 2
jackcoldrick
HubSpot Employee
HubSpot Employee

Using a third-party email validation tool with Hubspot forms

Hi @AndrewinKC,

 

This is definitely possible however it will require some degree of development in order to hook up a HubSpot form to an external service. There are 2 primary ways you can achieve this:

 

1) Forms API

I've done this using our Forms API and the Kickbox API to check/verifiy an email address. You can see this in action here if you enter an email address into the field and then click on another field: http://dev.jackcoldrick.com/kickbox-validation/. I output the response from Kickbox for demonstrative purposes. Of course in a real world scenario you wouldn't do this but rather parse the response and decide on the best course of action i.e whether to submit the form or not.

 

2) Customize the form embed code

You could also do something similar using our embedded forms. There is documentation on how to customize the form embed code using "advanced form options". Whilst I don't have an example of this method the process would look something like this:

 

  • Form loaded onto page
  • email address entered into the email field
  • AJAX request made to third party script to verify email address
  • Response returned
    • If all good submit form
    • If issues show error and do not submit the form

Both would require some development but depending on what you are trying to do and the level of comfort you have with this type of thing it should be fairly simple.

 

I hope this helps,

Jack

Jack Coldrick
Solutions Engineer @ HubSpot
Add me on LinkedIn
justwil
Member

Using a third-party email validation tool with Hubspot forms

Hey Jack,

 

I tried using the second option using this post: https://community.hubspot.com/t5/APIs-Integrations/Prevent-Form-submission-after-successful-Validati...but it didnt work. I'm not able to stop the form submission in order to validate the email address. Our forms are on our site hosted in Hubspot so not using the form embed code.

Also, we are using neverbounce which doesnt seem to integrate with hubspot forms to check the email according to them. Is there another solution you would suggest? I know you are using Kickbox API. 

0 Upvotes