# How to force a number field to have set amount of digits

**URL:** <https://community.glideapps.com/t/how-to-force-a-number-field-to-have-set-amount-of-digits/80104>\
**Category:** Ask for Help\
**Created:** [February 17, 2025, 7:04am UTC](https://community.glideapps.com/t/how-to-force-a-number-field-to-have-set-amount-of-digits/80104 "2025-02-17T07:04:01Z")\
**Posts on this page:** 1\
**Showing post:** 7

<div class="post-metadata">

**Author:** ![Darren\_Murphy](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/darren_murphy/32/47326_2.png) [@Darren\_Murphy](https://community.glideapps.com/u/Darren_Murphy)\
**Post date:** [February 17, 2025, 7:37am UTC](https://community.glideapps.com/t/how-to-force-a-number-field-to-have-set-amount-of-digits/80104/7 "2025-02-17T07:37:18Z")

</div>

> [@SageCat](#):
>
> Can I please ask another question relating to this field? How would I set this field to ensure it is unique? Each microchip number is unique so it would be great (but not a deal breaker) if we could enforce that each number is unique.

So when somebody submits a record, you need to ensure the number being submitted doesn’t create a duplicate record, yes?

For this you would need to use a Custom Form, which is a semi-advanced technique. Take a look at the below:

> [@How do I create a custom form?](https://community.glideapps.com/t/how-do-i-create-a-custom-form/25014):
>
> I’m just dropping this here so I have something to refer people to when they ask. This is a simple concept app (copyable), that demonstrates the following techniques: Building custom forms for adding and editing list items (as an alternative to the native forms provided by Glide) Preventing duplicate new entries using [User Specific Columns](https://docs.glideapps.com/all/reference/data-editor/user-specific-columns) and [Relations](https://docs.glideapps.com/all/reference/data-editor/computed-columns/relation-column) Enforcing mandatory input items The use of visibility conditions and user specific booleans to control user flow There is nothing particular…

---

_[View the full topic](https://community.glideapps.com/t/how-to-force-a-number-field-to-have-set-amount-of-digits/80104)._
