# Show categories in form, that belongs to one user

**URL:** <https://forum.adalo.com/t/show-categories-in-form-that-belongs-to-one-user/5720>\
**Category:** Get Help\
**Created:** [November 7, 2020, 8:17pm UTC](https://forum.adalo.com/t/show-categories-in-form-that-belongs-to-one-user/5720 "2020-11-07T20:17:42Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![patrickis](https://avatars.discourse-cdn.com/v4/letter/p/54ee81/32.png) [@patrickis](https://forum.adalo.com/u/patrickis)\
**Post date:** [November 7, 2020, 8:17pm UTC](https://forum.adalo.com/t/show-categories-in-form-that-belongs-to-one-user/5720/1 "2020-11-07T20:17:42Z")

</div>

Hello, I’m trying Adalo for a couple of weeks. I have 3 collections:

1. Users (users can have multiple categories and multiple things)
2. Category (category can have only one user and multiple things)
3. Things (things can have only one user and only one category)

I created a screen with form for editing a thing with visible field “Category” and when i try it on preview mode - it shows me all categories in DB, instead of categories, that belongs to Logged in user.

I think, that Relationships in DB is all good. What am i doing wrong? Please help.

---

<div class="post-metadata">

**Author:** ![Victor](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.adalo.com/victor/32/2054_2.png) [@Victor](https://forum.adalo.com/u/Victor)\
**Post date:** [November 8, 2020, 2:57pm UTC](https://forum.adalo.com/t/show-categories-in-form-that-belongs-to-one-user/5720/2 "2020-11-08T14:57:23Z")

</div>

Hi @patrickis,

Welcome to the forums!

If I understand you correctly, in your “Edit Thing” form, you’d like to restrict category list to those belonging to a user?

If you’re using a built-in form, the behaviour you observe is expected; form for editing a **Thing** has no idea that thing’s category has to belong to a particular user.

You could achieve the result by building a custom form (assembling it from the components). You could use “Dropdown” component, make it a list of categories and filter it by categories which belong to logged-in user.

Also, one comment for the DB structure: why would you want to connect Thing to a User? Anyway this is already established in a Category. In your structure you could accidentaly have a result of a Category belonging to UserA, but a Thing in this category belonging to UserB.

Best regards, Victor.

---

<div class="post-metadata">

**Author:** ![system](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.adalo.com/system/32/40401_2.png) [@system](https://forum.adalo.com/u/system)\
**Post date:** [November 18, 2020, 2:57pm UTC](https://forum.adalo.com/t/show-categories-in-form-that-belongs-to-one-user/5720/3 "2020-11-18T14:57:32Z")

</div>

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.
