Further Validation for Custom Properties

Hi team!

I hope you can help - I have created some custom properties for companies as I’m gathering registered and trading data into the CRM for companies so we can complete credit checks.

I’m looking to add some validation to custom fields such as email address and I’m wondering if anyone has come up with a way to achieve this, given the current data validation rules in the portal as they are.

It does it when you create a #phone number field, but i’m wondering if there is a way to do this for email addresses as well.

Thanks!

Katy

Hi @KJAM87! Welcome to the Community-- happy to have you here :blush:

While searching for some similar threads, I found @TomM2’s comment here. At this time, it is not possible to set up custom validation rules on forms. Looks like we have a similar Idea posted as well.

That said, depending on the type of validation you are hoping to achieve, you can also explore how to Block form or pop-up form submissions from specific and free email domains.

Hope this helps!

Best,
Kennedy

Hi @KJAM87,

Currently, custom validation for fields like email addresses isn’t possible directly within HubSpot forms, as the validation rules are static and can’t be modified. To achieve custom validation, you must embed your form and implement validation using custom JavaScript.

For more details on customizing forms, you can refer to this guide: Advanced Form Options.

Best regards!

Hey Katy,

I totally understand the need to add stronger validation to your custom fields, especially for something as critical as email addresses. While HubSpot doesn’t have built-in validation for custom fields beyond the default email property, there are a few ways you can enhance this with Numverify and Zapier integrations.

1. Use HubSpot’s Default Email Field

HubSpot already has basic email validation in place for the default email field (making sure the email is in the correct format, like name@domain.com). If you’re able to use the standard email field for your custom data (e.g., the company’s primary contact email), this would be the easiest option for basic email validation.

2. Enhance Email Validation with Zapier + Numverify

For more advanced email validation and to check if the email is truly valid (not just formatted correctly), I recommend using Zapier integrated with Numverify. Here’s how you can do it:

  • Set up a workflow in Zapier where, whenever a new custom email field is populated in HubSpot, Zapier sends the email address to Numverify for verification.
  • Numverify checks whether the email is valid, active, and not a disposable email, giving you a much more reliable way of validating contact data.
  • You can then use Zapier to automatically update the contact’s status in HubSpot (e.g., flagging it as “Valid” or “Invalid”).

Here’s how you can integrate Numverify with Zapier: Numverify + Zapier Integration.
.

This solution doesn’t require coding and can be fully automated to help you maintain cleaner, more accurate data.

3. Custom JavaScript for Front-End Validation

If you’re open to adding a little custom JavaScript, you can add real-time email validation directly to the form. The script can check that the email address meets a specific pattern (and optionally, you can include regex to make sure the domain is valid). This method gives you total control over the validation rules applied to each field.

4. Workflows for Invalid Email Flags

Once you’ve set up your validation process, use HubSpot workflows to automatically flag invalid email addresses or send internal notifications if an email fails validation. This will keep your CRM clean and help ensure that only valid email addresses get stored.

Let me know if you want help setting up any of these solutions, or if you need more info on how to integrate Numverify or Zapier with HubSpot!

Cheers,

Aanchal