# Prevent Duplicate Username

**URL:** <https://community.glideapps.com/t/prevent-duplicate-username/80517>\
**Category:** Ask for Help\
**Created:** [March 5, 2025, 4:45pm UTC](https://community.glideapps.com/t/prevent-duplicate-username/80517 "2025-03-05T16:45:30Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Variety\_Gaming](https://avatars.discourse-cdn.com/v4/letter/v/ac8455/32.png) [@Variety\_Gaming](https://community.glideapps.com/u/Variety_Gaming)\
**Post date:** [March 5, 2025, 4:45pm UTC](https://community.glideapps.com/t/prevent-duplicate-username/80517/1 "2025-03-05T16:45:30Z")

</div>

Help me to add this feature for my social media app. A username cannot used more than one and also username only contains letter, number, \_, .  
Anyone please help me and share your kindness with me 🙂

---

<div class="post-metadata">

**Author:** ![ThinhDinh](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/thinhdinh/32/49_2.png) [@ThinhDinh](https://community.glideapps.com/u/ThinhDinh)\
**Post date:** [March 6, 2025, 12:18am UTC](https://community.glideapps.com/t/prevent-duplicate-username/80517/2 "2025-03-06T00:18:33Z")

</div>

> [@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…

You can try this.

---

<div class="post-metadata">

**Author:** ![Variety\_Gaming](https://avatars.discourse-cdn.com/v4/letter/v/ac8455/32.png) [@Variety\_Gaming](https://community.glideapps.com/u/Variety_Gaming)\
**Post date:** [March 6, 2025, 12:34am UTC](https://community.glideapps.com/t/prevent-duplicate-username/80517/3 "2025-03-06T00:34:17Z")

</div>

Sure! Thanks!!

---

<div class="post-metadata">

**Author:** ![Variety\_Gaming](https://avatars.discourse-cdn.com/v4/letter/v/ac8455/32.png) [@Variety\_Gaming](https://community.glideapps.com/u/Variety_Gaming)\
**Post date:** [March 6, 2025, 12:40am UTC](https://community.glideapps.com/t/prevent-duplicate-username/80517/4 "2025-03-06T00:40:35Z")

</div>

in that template which data should I need to copy to complete my duplicate username system? (and what is “things” mentioned there) sorry, because I’m new to glide ☹

---

<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:** [March 6, 2025, 1:16am UTC](https://community.glideapps.com/t/prevent-duplicate-username/80517/5 "2025-03-06T01:16:50Z")

</div>

The template just provides an example of the techniques that can be used. The specific columns that check for duplicates can be found in the Helper table that the form is attached to:

 ![CleanShot 2025-03-06 at 09.15.00@2x](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/1/a/1a0b6f26dc922c92a53af23eb5ebbdb69be905b6.png)

The idea with the template is that you can study it to see how it works, and then apply similar techniques in your own Apps.

---

<div class="post-metadata">

**Author:** ![Variety\_Gaming](https://avatars.discourse-cdn.com/v4/letter/v/ac8455/32.png) [@Variety\_Gaming](https://community.glideapps.com/u/Variety_Gaming)\
**Post date:** [March 6, 2025, 1:27am UTC](https://community.glideapps.com/t/prevent-duplicate-username/80517/6 "2025-03-06T01:27:32Z")

</div>

duplicate check is mentioned from relthings to duplicate only, isn’t it?

---

<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:** [March 6, 2025, 1:31am UTC](https://community.glideapps.com/t/prevent-duplicate-username/80517/7 "2025-03-06T01:31:17Z")

</div>

The name that the user enters is used in a relation. If that relation is not empty, then a duplicate is found.

---

<div class="post-metadata">

**Author:** ![Variety\_Gaming](https://avatars.discourse-cdn.com/v4/letter/v/ac8455/32.png) [@Variety\_Gaming](https://community.glideapps.com/u/Variety_Gaming)\
**Post date:** [March 6, 2025, 1:34am UTC](https://community.glideapps.com/t/prevent-duplicate-username/80517/8 "2025-03-06T01:34:21Z")

</div>

Thanks!!
