Validate form input

Highlighted
tke
New Member

Is there a way to validate user input on forms, to protect against things like SQL injection and cross-site scripting?

Reply
0 Upvotes
1 Reply 1
Regular Advisor | Gold Partner | HubSpot Certified Trainer

Hi @tke,

 

Out of the box there are no easy validation features, but email addresses are automatically validated. See this note from the HubSpot Knowledge Base:

 

What field validation is on HubSpot forms?
Email addresses entered into the Email field on a HubSpot form are immediately validated by HubSpot. If the email address is not valid (does not exist, is misspelled, etc.), the form cannot be submitted. You can also block specific email domains or validate phone numbers in form submissions.

 

If you want to build a form with custom validation rules, you can work with your developer to integrate your custom form with HubSpot using the HubSpot Forms API.

 

Josh

 




Did this post help solve your problem? If so, please mark it as a solution.

Josh Curcio

We help tier 1 & 2 manufacturers generate leads!
HubSpot Gold Partner & HubSpot Certified Trainer

Reply
0 Upvotes