Email Validation Integration for HubSpot Forms

Email Validation Integration for HubSpot Forms

The ZeroBounce HubSpot integration allows you to seamlessly import your HubSpot email lists for email validation, real-time validation, and Email Scoring.

Prerequisites

You must have an active HubSpot account, a website to integrate HubSpot forms and an active ZeroBounce account.

If you do not have access to the mentioned accounts, you can create them using the following links:

How to set up the HubSpot Forms integration

Once you have access to HubSpot and ZeroBounce, proceed with the following steps:

  • Step 1:
    Go to https://www.zerobounce.net/members/signin and sign in with your ZeroBounce account. Then, go to the left menu and click Integrations.

    The ZeroBounce members dashboard with a red square highlighting the Integrations tab.
  • Step 2:
    On the Integrations page, select HubSpot from the Apps/Add-ons panel.

    The list of ZeroBounce integrations found in the members’ area dashboard.
  • Step 3:
    Enter your website URL and click 'New Public API Key' to generate an API key linked to your site.

    Use only the domain to generate the API Key. Ex: https://my.website.com. Make sure that the URL starts with https:// and there is no / at the end. Failure to do so will result in validation issues.

    The ZeroBounce HubSpot integration with the ‘New Public API key’ button next to a field with the text ‘http://my.website.com.’
  • Step 4:
    In this section, you can manage your API Keys in the following ways:
    • URL - if the URL is changed, ensure that the script is placed on the correct page
    • Throttle - the number of email validation attempts per hour on your form
    • Change statuses
      • Select the checkboxes that represent the validation criteria you want to designate as "valid" for your use case. Unselected checkboxes indicate that the associated criteria will not be considered valid.
    • Generate a new API Key
    • Show/Hide API Key
    • Copy API Key
    • Debug Mode
    • Delete

    After generating your API key in the previous step, copy it and proceed to your webpage to continue configuring your integration (Step 5).

    The ZeroBounce HubSpot integration menu with the domain ‘https://my.website.com,’ the API key ending in ‘f96e0’ and Throttle set to ‘10.’
    <span class='important'>Debug mode removes validation limits, but to safeguard your validation services, it's best not to keep it active for too long.</span>

    Debug mode removes validation limits, but to safeguard your validation services, it's best not to keep it active for too long.


  • Step 5:
    Visit the HubSpot website and, using the left navigation, navigate to the Forms section.

    The HubSpot navigation menu with ‘Marketing’ and ‘Forms’ highlighted.

    Once on the Forms page, create a new form using the top right button Create Form and follow the instructions to create an Embedded form.


    ZeroBounce ImageThe HubSpot Forms menu with the option ‘Embedded form’ selected.

    Select the appropriate form template for your needs and finalize the process by clicking the Start button.

    The HubSpot Forms template selection and preview menu with an empty ‘email’ field, a ‘Submit’ button, and a ‘Start’ button.


    Once the form is set up, click the Embed button in the top right corner, select the Embed code tab, and click on Copy.

    HubSpot’s ‘Embed your form’ pop-up shows the form’s HTML script and a ‘Copy’ button.


  • Step 6:
    With the Embed code from HubSpot, proceed to your website and place the code in the appropriate location. This location is where your form will appear.

    A website HTML/CSS editor with the HTML script for a HubSpot form.
  • Step 7:
    Add the ZeroBounce code for the validation widget as the fourth parameter for the create function (Step 6).

    apiKey - Use the API key generated in Step 4.
    hubspotFormId - This is form ID that can be found on each embedded form under the “formId” property.

    The final code should resemble the image below.

    ZeroBounce Image
  • Step 8:
    Once everything is in place, save the page, publish it, and your HubSpot Form with ZeroBounce email validation will be ready.

    A HubSpot website form with a blurred email address entry along with a red border and an ‘X’ to indicate an invalid email address.
    A HubSpot website form with a blurred email address entry along with a green border and a checkmark to indicate a valid email address.

Please note:
Certain cases will allow the form to be submitted even if the email is invalid.
These cases are the following:

  • If the ZeroBounce user account used to generate the API key runs out of credits.
  • If the throttle limit is exceeded. Throttle is set by default to 10 per hour and can be changed in the HubSpot integration screen (see Step 4).
Emails that are considered valid include those categorized as catch-all, unknown, and valid.