Forms

Does HubSpot have the ability to add field validation on forms?

Last updated: December 13, 2016

HubSpot has default validation for email addresses. You also have the option to prevent users with email addresses at certain domains from submitting your form.

You can also turn on validation for the length of the default phone number field in HubSpot.

Customized form validation rules can be written using JavaScript, but the form embed code no longer supports the addition of custom validation JS, directly in the embed. The HubSpot Forms API is also publicly available if you and your developer choose to build a completely custom form, but want submissions to pass into HubSpot.

Related articles: