# Filtering problem

**URL:** https://community.glideapps.com/t/filtering-problem/69624
**Category:** Ask for Help
**Tags:** choice, data-editor
**Created:** [January 16, 2024, 7:30pm UTC](https://community.glideapps.com/t/filtering-problem/69624 "2024-01-16T19:30:49Z")
**Posts on this page:** 1
**Showing post:** 2

<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: [January 17, 2024, 12:20am UTC](https://community.glideapps.com/t/filtering-problem/69624/2 "2024-01-17T00:20:28Z")

</div>

In your screenshot, are you adding users to the project from the project’s details screen? I’m asking to see if we can have the context of that project.

What I would do is create a custom form.

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

- Add a relation to the assignments table from the projects table, and a joined list column on top of it to retrieve all emails that have been assigned.

- Add a query to the users table, filter by email is not included in this row \> joined list column of assigned emails, and use it for your choice component.

- Add user-specific columns for storing the person you want to assign’s email (I think you have an email entry in there in case the name is not on the list? If so, two user-specific columns for this).

- Show an error when the “custom email” column has a value included in the joined list column.

- Add an If-Then-Else column named “final email”. If “custom email” is not empty then return “custom email”, else return the value from the dropdown choice component.

- Create a relation from that If-Then-Else to the assignments table, and use a rollup to sum the number of hours they have been assigned.

- Use that rollup value to show/hide the choices for hours to be assigned in this project.

---

_[View the full topic](https://community.glideapps.com/t/filtering-problem/69624)._
