# CRM Validation on field entry

**URL:** <https://community.hubspot.com/t/crm-validation-on-field-entry/107042>\
**Category:** CMS Development\
**Tags:** enterprise\
**Created:** [May 13, 2024, 7:51pm UTC](https://community.hubspot.com/t/crm-validation-on-field-entry/107042 "2024-05-13T19:51:49Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![ABatchelor8](https://avatars.discourse-cdn.com/v4/letter/a/47e85d/32.png) [@ABatchelor8](https://community.hubspot.com/u/ABatchelor8)\
**Post date:** [May 13, 2024, 7:51pm UTC](https://community.hubspot.com/t/crm-validation-on-field-entry/107042/1 "2024-05-13T19:51:49Z")

</div>

I have a use case whereby we need to validate the text value a user inputs on a custom object, (Object A). The object is associated with the Companies object. I’d like to be able to check that the value being inputted unique based on all other Object A records also associated with the same Company record.

For example:

Company ACME has 3 associated Object A records, each with a text value that is unique to one another:

Record 1 - ‘Banana’

Record 2 - ‘Apple’

Record 3 - ‘Orange’

A user adds another associated Record and tries to input the value ‘Apple’, at this point the validation on input should fire to inform the user that another associated Record already exists with this value.

---

<div class="post-metadata">

**Author:** ![SteveHTM](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/stevehtm/32/22074_2.png) [@SteveHTM](https://community.hubspot.com/u/SteveHTM)\
**Post date:** [May 14, 2024, 2:55am UTC](https://community.hubspot.com/t/crm-validation-on-field-entry/107042/2 "2024-05-14T02:55:58Z")

</div>

@ABatchelor8 - can I ask whether the context here is validing input on a HubSpot form for each of these associated objects? If not a form, what’s the data input method that could support an implementation of data validation?

Steve

---

<div class="post-metadata">

**Author:** ![ABatchelor8](https://avatars.discourse-cdn.com/v4/letter/a/47e85d/32.png) [@ABatchelor8](https://community.hubspot.com/u/ABatchelor8)\
**Post date:** [May 14, 2024, 10:18am UTC](https://community.hubspot.com/t/crm-validation-on-field-entry/107042/3 "2024-05-14T10:18:28Z")

</div>

Hi Steve, its not a form. Its just a HubSpot custom object record that user is editing/updating. I’m really surprised at teh lack of out the box functionality on record validation fro HubSpt compared to other CRMs so Im looking for other alternatives this, custom code being one of them.

Thanks

---

<div class="post-metadata">

**Author:** ![SteveHTM](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/stevehtm/32/22074_2.png) [@SteveHTM](https://community.hubspot.com/u/SteveHTM)\
**Post date:** [May 14, 2024, 2:55pm UTC](https://community.hubspot.com/t/crm-validation-on-field-entry/107042/4 "2024-05-14T14:55:05Z")

</div>

Any proposals for additional HubSpot features can always be submitted to the ideas forum in this community.
