# Form Validation

**URL:** <https://community.hubspot.com/t/form-validation/30537>\
**Category:** HubSpot Ideas\
**Tags:** forms\
**Created:** [January 21, 2021, 9:56am UTC](https://community.hubspot.com/t/form-validation/30537 "2021-01-21T09:56:16Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![VGautam](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/vgautam/32/48165_2.png) [@VGautam](https://community.hubspot.com/u/VGautam)\
**Post date:** [January 21, 2021, 9:56am UTC](https://community.hubspot.com/t/form-validation/30537/1 "2021-01-21T09:56:16Z")

</div>

HubSpot should provide the validation options like field will accept only chars, numbers, chars & numbers both, links in the form fields so one can select the appropriate one as per one’s use. It would be similar to what we have currently to block generic ids in emails

Thanks,

Varun

---

<div class="post-metadata">

**Author:** ![LucasM](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/lucasm/32/104282_2.png) [@LucasM](https://community.hubspot.com/u/LucasM)\
**Post date:** [February 16, 2021, 8:34pm UTC](https://community.hubspot.com/t/form-validation/30537/2 "2021-02-16T20:34:54Z")

</div>

I want to expand on this capability to validate the values entered into a form with various rules. Similar to the rules that allow us to prevent free domains from filling out our forms. It would be nice to have the ability to limit what the acceptable range values are that can be entered into a form field.

So for example:

1. You have a form intended for someone to reach out to you to get in touch. In our case, they let us know the date they need our services. We want to validate the date they select to prevent people from entering an unacceptable date. Right now people are entering a date 1,000 years in the future, and we want to limit this to 3 years.
2. You have a message field for the user to let us know what services they are looking for or ask us a question. We would want to validate this message to make sure it was not just jibberish.

---

<div class="post-metadata">

**Author:** ![Roya2](https://avatars.discourse-cdn.com/v4/letter/r/c67d28/32.png) [@Roya2](https://community.hubspot.com/u/Roya2)\
**Post date:** [July 19, 2022, 10:10am UTC](https://community.hubspot.com/t/form-validation/30537/3 "2022-07-19T10:10:21Z")

</div>

This is a basic security feature that should be available for all.

Right now form submissions can used to create phishing emails on behalf of the company name, and these kind of validation can help preventing it.

---

<div class="post-metadata">

**Author:** ![YiRui\_Chua](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/yirui_chua/32/23766_2.png) [@YiRui\_Chua](https://community.hubspot.com/u/YiRui_Chua)\
**Post date:** [March 29, 2023, 3:50am UTC](https://community.hubspot.com/t/form-validation/30537/4 "2023-03-29T03:50:08Z")

</div>

Hi team,  
expanding on this: it would be helpful if we can restrict the text within a form to a specific language too.  
For instance, even if the form fields are in english, customers can still submit content in mandarin. Having a validation tool for that would be super helpful to ensure clean submissions.  
Thank you!

---

<div class="post-metadata">

**Author:** ![Deepti25](https://avatars.discourse-cdn.com/v4/letter/d/35a633/32.png) [@Deepti25](https://community.hubspot.com/u/Deepti25)\
**Post date:** [May 24, 2023, 10:00am UTC](https://community.hubspot.com/t/form-validation/30537/5 "2023-05-24T10:00:43Z")

</div>

Please accept the form field validation on first name, it shouldnt accept 123 or abc. Hope to get it soon.

---

<div class="post-metadata">

**Author:** ![LJaena](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/ljaena/32/102945_2.png) [@LJaena](https://community.hubspot.com/u/LJaena)\
**Post date:** [August 30, 2023, 2:45pm UTC](https://community.hubspot.com/t/form-validation/30537/6 "2023-08-30T14:45:22Z")

</div>

any updates on this feature request? This would be very useful!

---

<div class="post-metadata">

**Author:** ![PJPinMeTo](https://avatars.discourse-cdn.com/v4/letter/p/f475e1/32.png) [@PJPinMeTo](https://community.hubspot.com/u/PJPinMeTo)\
**Post date:** [November 28, 2023, 10:43am UTC](https://community.hubspot.com/t/form-validation/30537/7 "2023-11-28T10:43:38Z")

</div>

I agree that these kind of features are desinged to reduce spam.  
Why are they offering features like these on the HubSpot CMS when they don’t work?  
I was directed to this post by the support team today, they agreed that the features don’t work and that the product managers reveiew posts like this to improve the platform.

My objective:

To reduce spam and people entering email address in the website url field (I have Catcha setup correctly and it works)

e.g. hjahajajasa

[ahahah@.com](mailto:ahahah@.com)

Edit Contact property menu:

RULES-

Set min char limit

Set max char limit

Don’t allow special characters like @,#&  
**These rules does not work at all.**  
To anybody else I would suggest to create a custom form

Forms API Overview  
[https://legacydocs.hubspot.com/docs/methods/forms/forms\_overview](https://legacydocs.hubspot.com/docs/methods/forms/forms_overview)

Use non-HubSpot forms

> **[Use non-HubSpot forms](https://knowledge.hubspot.com/forms/use-non-hubspot-forms)**
>
> Learn how to set up and use non-HubSpot forms to collect submissions on your website's existing forms in HubSpot.
