# Allow Exact Digit Validation for Numeric Properties

**URL:** <https://community.hubspot.com/t/allow-exact-digit-validation-for-numeric-properties/137499>\
**Category:** HubSpot Ideas\
**Tags:** properties\
**Created:** [August 5, 2025, 6:16pm UTC](https://community.hubspot.com/t/allow-exact-digit-validation-for-numeric-properties/137499 "2025-08-05T18:16:56Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![DEmmanuel](https://avatars.discourse-cdn.com/v4/letter/d/8e7dd6/32.png) [@DEmmanuel](https://community.hubspot.com/u/DEmmanuel)\
**Post date:** [August 5, 2025, 6:16pm UTC](https://community.hubspot.com/t/allow-exact-digit-validation-for-numeric-properties/137499/1 "2025-08-05T18:16:56Z")

</div>

It would be extremely helpful to have a way to enforce an exact number of digits for numeric properties, not just character limits or value ranges.  
For example, a business might collect membership IDs, employee numbers, or invoice references that are always exactly 8 digits long (e.g. 00123456).  
These aren’t just numbers — they follow strict formats.

Currently:

- We can enable “numbers only” validation
- We can set min/max values (e.g., 10000000–99999999)  
But that doesn’t guarantee exactly 8 digits (e.g., 1234567 still passes, and error messages can be misleading)

In the property settings, allow us to define:

- “Must be exactly X digits”
- Or more flexible rules like “Minimum digits: X” / “Maximum digits: Y”

---

<div class="post-metadata">

**Author:** ![JeannieN](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/jeannien/32/11726_2.png) [@JeannieN](https://community.hubspot.com/u/JeannieN)\
**Post date:** [September 10, 2025, 9:50pm UTC](https://community.hubspot.com/t/allow-exact-digit-validation-for-numeric-properties/137499/2 "2025-09-10T21:50:48Z")

</div>

Hi @DEmmanuel, have you tried using the AI-assisted "_Generate Regex"_ button on Property Rules page of your existing property? The button will appear if you select _Validate using regular expressions (regex)_. You can enter a prompt that describes the validation rules you’d like applied to the property.

Let me know once you’ve had a chance to try this.

Cheers,  
Jeannie

---

<div class="post-metadata">

**Author:** ![JeannieN](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/jeannien/32/11726_2.png) [@JeannieN](https://community.hubspot.com/u/JeannieN)\
**Post date:** [September 17, 2025, 5:06pm UTC](https://community.hubspot.com/t/allow-exact-digit-validation-for-numeric-properties/137499/3 "2025-09-17T17:06:45Z")

</div>

Empty
