# Validation for duplicate values

**URL:** <https://community.tulip.co/t/validation-for-duplicate-values/11465>\
**Category:** Product Suggestions\
**Tags:** apps, widget, widget-validation\
**Created:** [May 15, 2024, 3:02am UTC](https://community.tulip.co/t/validation-for-duplicate-values/11465 "2024-05-15T03:02:25Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![Preston](https://avatars.discourse-cdn.com/v4/letter/p/a587f6/32.png) [@Preston](https://community.tulip.co/u/Preston)\
**Post date:** [May 15, 2024, 3:02am UTC](https://community.tulip.co/t/validation-for-duplicate-values/11465/1 "2024-05-15T03:02:25Z")

</div>

We routinely scan serials into an app, each populating a unique text variable (serial1, serial2, …). It would be incredibly useful to have the red validation indicator on the text input box when its input matches another input.

While we could add the serial to an array upon scanning, this doesn’t help us when the operator needs to manually type a serial in.

I am hoping that the validation rules can be expanded to include a use case like this.

---

<div class="post-metadata">

**Author:** ![shep](https://sea2.discourse-cdn.com/flex020/user_avatar/community.tulip.co/shep/32/8231_2.png) [@shep](https://community.tulip.co/u/shep)\
**Post date:** [May 16, 2024, 1:39pm UTC](https://community.tulip.co/t/validation-for-duplicate-values/11465/2 "2024-05-16T13:39:48Z")

</div>

Hi @Preston, thanks for your suggestion for validation rules. Just to make sure we have your suggestion correct, you’d like the form field to validate that the value input is unique and does not match another input (if it does, then indicate a validation error)?

Thanks for your feedback — this will help us when expanding the capabilities of validation rules.

---

<div class="post-metadata">

**Author:** ![thorsten.langner](https://avatars.discourse-cdn.com/v4/letter/t/4bbf92/32.png) [@thorsten.langner](https://community.tulip.co/u/thorsten.langner)\
**Post date:** [May 17, 2024, 7:21am UTC](https://community.tulip.co/t/validation-for-duplicate-values/11465/3 "2024-05-17T07:21:22Z")

</div>

Hi @shep,

I understand it like (and that would be more versatile) having a validation rule `not in`.  
So the input text is not in an text array.  
Similar to whats possible in trigger logic:

 ![image](https://us1.discourse-cdn.com/flex020/uploads/agilemfg/original/2X/b/bcd4408caf1757d3c590be57bd28257716960698.png)

That would also be expandable with a `does not contain any of...` to provide a list of illegal characters or strings…

---

<div class="post-metadata">

**Author:** ![shep](https://sea2.discourse-cdn.com/flex020/user_avatar/community.tulip.co/shep/32/8231_2.png) [@shep](https://community.tulip.co/u/shep)\
**Post date:** [May 17, 2024, 3:07pm UTC](https://community.tulip.co/t/validation-for-duplicate-values/11465/4 "2024-05-17T15:07:14Z")

</div>

Hi @thorsten.langner, this makes sense and is very helpful. Thanks for the clarification!

@Preston if you had more to add or intended on something else, please let us know. Otherwise, I will incorporate this into our future planning. Thanks everyone!

---

<div class="post-metadata">

**Author:** ![shep](https://sea2.discourse-cdn.com/flex020/user_avatar/community.tulip.co/shep/32/8231_2.png) [@shep](https://community.tulip.co/u/shep)\
**Post date:** [September 11, 2024, 2:33pm UTC](https://community.tulip.co/t/validation-for-duplicate-values/11465/5 "2024-09-11T14:33:02Z")

</div>

Hi @Preston, would you be able to confirm that the exclusion validation rules like “does not contain” would be a viable solution for your use case?

---

<div class="post-metadata">

**Author:** ![Preston](https://avatars.discourse-cdn.com/v4/letter/p/a587f6/32.png) [@Preston](https://community.tulip.co/u/Preston)\
**Post date:** [September 12, 2024, 11:07pm UTC](https://community.tulip.co/t/validation-for-duplicate-values/11465/6 "2024-09-12T23:07:21Z")

</div>

Yes, a “does not contain” rule would work perfectly.

---

<div class="post-metadata">

**Author:** ![shep](https://sea2.discourse-cdn.com/flex020/user_avatar/community.tulip.co/shep/32/8231_2.png) [@shep](https://community.tulip.co/u/shep)\
**Post date:** [September 13, 2024, 6:13pm UTC](https://community.tulip.co/t/validation-for-duplicate-values/11465/7 "2024-09-13T18:13:20Z")

</div>

Sounds great — we will take a look at this in an upcoming release. Thanks for the suggestion and discussion all.

---

<div class="post-metadata">

**Author:** ![Beth](https://sea2.discourse-cdn.com/flex020/user_avatar/community.tulip.co/beth/32/5987_2.png) [@Beth](https://community.tulip.co/u/Beth)\
**Post date:** [January 16, 2025, 2:31pm UTC](https://community.tulip.co/t/validation-for-duplicate-values/11465/8 "2025-01-16T14:31:35Z")

</div>

Great news @Preston and @thorsten.langner - this has been implemented in [Platform Release 302 - January 2025](https://community.tulip.co/t/platform-release-302-january-2025/13541) 🎉

Go check it out and thanks for the helpful feedback!

---

<div class="post-metadata">

**Author:** ![Beth](https://sea2.discourse-cdn.com/flex020/user_avatar/community.tulip.co/beth/32/5987_2.png) [@Beth](https://community.tulip.co/u/Beth)\
**Post date:** [January 16, 2025, 2:31pm UTC](https://community.tulip.co/t/validation-for-duplicate-values/11465/9 "2025-01-16T14:31:40Z")

</div>

Closed on January 16, 2025, 2:31pm UTC


