# Find from a list from within a form

**URL:** https://community.glideapps.com/t/find-from-a-list-from-within-a-form/28106
**Category:** Ask for Help
**Created:** [June 18, 2021, 4:25am UTC](https://community.glideapps.com/t/find-from-a-list-from-within-a-form/28106 "2021-06-18T04:25:39Z")
**Posts on this page:** 20
**Page:** 1

<div class="post-metadata">

### Author: ![abe.sherman](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/abe.sherman/32/11260_2.png) [@abe.sherman](https://community.glideapps.com/u/abe.sherman)
#### Post date: [June 18, 2021, 4:25am UTC](https://community.glideapps.com/t/find-from-a-list-from-within-a-form/28106/1 "2021-06-18T04:25:39Z")

</div>

upon a user clicking that + Button to create a item, i would like to force the user to check and see if that item already exist by scanning the UPC or entering the UPC manually, If the UPC matches. It should give the user a relationship of the link it has found. Otherwise If item was not found then let the user fill out the rest of the form using Visibility. My issue is how do i search a item with the filters making sure that the item dose not already exist in a form. I had no issue figuring this out outside of a form scenario.

 ![image](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/0/4/046c04618937e29412ecc716e146dcb49239d1cc.png)

---

<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: [June 18, 2021, 5:44am UTC](https://community.glideapps.com/t/find-from-a-list-from-within-a-form/28106/2 "2021-06-18T05:44:52Z")

</div>

I’m not sure if this is possible when using a form. The problem is that the new row isn’t added until the form is submitted, and so there is nothing to build a relation with.  
I would use a custom form on a details layout, with the input components writing to user specific columns. Then you can build a relation and check for duplicates in real time.

---

<div class="post-metadata">

### Author: ![abe.sherman](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/abe.sherman/32/11260_2.png) [@abe.sherman](https://community.glideapps.com/u/abe.sherman)
#### Post date: [June 18, 2021, 6:06am UTC](https://community.glideapps.com/t/find-from-a-list-from-within-a-form/28106/3 "2021-06-18T06:06:57Z")

</div>

what about doing this without the forms and without using a inlist relation?

 ![image](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/9/2/92278e5e261856ff55ce9cabb96a1a642908beef.png)

---

<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: [June 18, 2021, 6:10am UTC](https://community.glideapps.com/t/find-from-a-list-from-within-a-form/28106/4 "2021-06-18T06:10:13Z")

</div>

If your scan result is written to a user specific column then sure, it’s easy.

---

<div class="post-metadata">

### Author: ![abe.sherman](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/abe.sherman/32/11260_2.png) [@abe.sherman](https://community.glideapps.com/u/abe.sherman)
#### Post date: [June 18, 2021, 6:12am UTC](https://community.glideapps.com/t/find-from-a-list-from-within-a-form/28106/5 "2021-06-18T06:12:09Z")

</div>

Yep already long past that part i am falling into issues after resetting it.  
It works but then jumps to the line. Good. But then if i need to reset it.  
I made a relation to the line and another button to reset it.  
But then it goes to line 2. Or grays out.  
 ![image](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/6/c/6cefc2d3ffdd97296df92a3c8d5b5720b3fef2f4.png)

---

<div class="post-metadata">

### Author: ![abe.sherman](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/abe.sherman/32/11260_2.png) [@abe.sherman](https://community.glideapps.com/u/abe.sherman)
#### Post date: [June 18, 2021, 7:34pm UTC](https://community.glideapps.com/t/find-from-a-list-from-within-a-form/28106/6 "2021-06-18T19:34:59Z")

</div>

@Darren_Murphy  
Watch the video to see where i am getting stuck at.

[](https://www.youtube.com/watch?v=MGygEI5CM04)

---

<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: [June 19, 2021, 8:34am UTC](https://community.glideapps.com/t/find-from-a-list-from-within-a-form/28106/7 "2021-06-19T08:34:04Z")

</div>

@abe.sherman you appear to be making that a lot more complicated than it needs to be. If all you’re trying to do is find out if the entered value already exists, it’s just a matter of creating a multi-relation from that column to the column that holds the data you’re matching against. If that relation is not empty, then you have a match. That’s it.

---

<div class="post-metadata">

### Author: ![abe.sherman](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/abe.sherman/32/11260_2.png) [@abe.sherman](https://community.glideapps.com/u/abe.sherman)
#### Post date: [June 21, 2021, 12:16am UTC](https://community.glideapps.com/t/find-from-a-list-from-within-a-form/28106/8 "2021-06-21T00:16:50Z")

</div>

Sorry that does not work for me. What i am trying to do is, If found data Then show Data in the bottom, Otherwise show a hint no data found if data is entered and there is no match. also remember i am using multi user text.

[![](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/8/f/8fc5bf8402d883da86263520cac1e0bab71861d9.jpeg "Rel Scan not working.") ](https://www.youtube.com/watch?v=5qmDfxk9g7U)

---

<div class="post-metadata">

### Author: ![Jeff\_Hager](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/jeff_hager/32/43_2.png) [@Jeff\_Hager](https://community.glideapps.com/u/Jeff_Hager)
#### Post date: [June 21, 2021, 1:36am UTC](https://community.glideapps.com/t/find-from-a-list-from-within-a-form/28106/9 "2021-06-21T01:36:30Z")

</div>

Instead of trying to make the row jump to the matching row while you are typing, I would instead always let the detail screen attach to the first row. Then create a relation and lookups for all of the data you want to see. The lookup columns are what you will display on the screen. The thing is, instead of hopping between rows, you will always be displaying and working with the first row.

I think trying to make the filter jump around to different rows, especially while typing, is going to make your search bar unpredictable and give you the problems you are having now

---

<div class="post-metadata">

### Author: ![abe.sherman](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/abe.sherman/32/11260_2.png) [@abe.sherman](https://community.glideapps.com/u/abe.sherman)
#### Post date: [June 21, 2021, 2:43am UTC](https://community.glideapps.com/t/find-from-a-list-from-within-a-form/28106/10 "2021-06-21T02:43:50Z")

</div>

Ok have a look at the update, any idea?

[![](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/b/c/bc9c9615fab514c3c62902cd06b5dda118bed2d8.jpeg "Item Submit form") ](https://www.youtube.com/watch?v=E4eIbt_jP-8)

---

<div class="post-metadata">

### Author: ![Jeff\_Hager](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/jeff_hager/32/43_2.png) [@Jeff\_Hager](https://community.glideapps.com/u/Jeff_Hager)
#### Post date: [June 21, 2021, 3:18am UTC](https://community.glideapps.com/t/find-from-a-list-from-within-a-form/28106/11 "2021-06-21T03:18:57Z")

</div>

I wonder what would happen if you set up a custom action on your Add button that first does a View Details through the relation, followed by the Show Form action. Hopefully it would then be sitting on the correct row through the relation, so you would have access to the details of that matching item within the form.

---

<div class="post-metadata">

### Author: ![abe.sherman](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/abe.sherman/32/11260_2.png) [@abe.sherman](https://community.glideapps.com/u/abe.sherman)
#### Post date: [June 21, 2021, 3:28am UTC](https://community.glideapps.com/t/find-from-a-list-from-within-a-form/28106/12 "2021-06-21T03:28:52Z")

</div>

Will it work with Multiple UPC? i did do a test from a view. But from the Single Relationship it currently fails. Assuming it has multiple matches.

![image](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/3/4/34d2e2fbae2cdb314e8696daca8ebff804328c54.png)

---

<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: [June 21, 2021, 3:33am UTC](https://community.glideapps.com/t/find-from-a-list-from-within-a-form/28106/13 "2021-06-21T03:33:18Z")

</div>

Change it to a multi-relation and then display it as an inline list.  
Then from there, do what Jeff said.

---

<div class="post-metadata">

### Author: ![abe.sherman](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/abe.sherman/32/11260_2.png) [@abe.sherman](https://community.glideapps.com/u/abe.sherman)
#### Post date: [June 21, 2021, 3:37am UTC](https://community.glideapps.com/t/find-from-a-list-from-within-a-form/28106/14 "2021-06-21T03:37:02Z")

</div>

That worked immediately. Going to redo everything to the new inline list.

---

<div class="post-metadata">

### Author: ![abe.sherman](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/abe.sherman/32/11260_2.png) [@abe.sherman](https://community.glideapps.com/u/abe.sherman)
#### Post date: [June 21, 2021, 3:56am UTC](https://community.glideapps.com/t/find-from-a-list-from-within-a-form/28106/15 "2021-06-21T03:56:30Z")

</div>

one last Q to finish up this project.  
Using the filter on the item itself.

 ![image](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/9/e/9e9d69449878de95dc3c233359bffb7bd3400b81.png)  
 ![image](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/5/c/5c3cac2e78d570cb7ca934ad70356bb83c32df6d.png)  
 ![image](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/b/c/bc0774b5641cfebd9fb3519a7bc24654ba07b483.png)

Why does it not work?

---

<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: [June 21, 2021, 4:06am UTC](https://community.glideapps.com/t/find-from-a-list-from-within-a-form/28106/16 "2021-06-21T04:06:48Z")

</div>

Try using lowercase true  
Also, add a checkbox component to the screen pointing at that same column. This will help you debug

---

<div class="post-metadata">

### Author: ![abe.sherman](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/abe.sherman/32/11260_2.png) [@abe.sherman](https://community.glideapps.com/u/abe.sherman)
#### Post date: [June 21, 2021, 4:11am UTC](https://community.glideapps.com/t/find-from-a-list-from-within-a-form/28106/17 "2021-06-21T04:11:11Z")

</div>

This just got interesting. The glide table shows a solid True  
 ![image](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/b/f/bf58354f346cd1dfd3afa58e352f2fd75779c928.png)

 ![image](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/5/f/5f2f8fe8ff1492f8a1c7d976a5f33c78d69c7c23.png)

---

<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: [June 21, 2021, 4:15am UTC](https://community.glideapps.com/t/find-from-a-list-from-within-a-form/28106/18 "2021-06-21T04:15:20Z")

</div>

yes, so that indicates that you’re not on the row that you think you’re on

---

<div class="post-metadata">

### Author: ![abe.sherman](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/abe.sherman/32/11260_2.png) [@abe.sherman](https://community.glideapps.com/u/abe.sherman)
#### Post date: [June 21, 2021, 4:16am UTC](https://community.glideapps.com/t/find-from-a-list-from-within-a-form/28106/19 "2021-06-21T04:16:41Z")

</div>

I am defiantly on it. I can see the info on top and the image.

 ![image](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/e/f/ef3effe5bd0d5a67b67af734f0f732ea6a831d83.png)

Is this a bug?

---

<div class="post-metadata">

### Author: ![abe.sherman](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/abe.sherman/32/11260_2.png) [@abe.sherman](https://community.glideapps.com/u/abe.sherman)
#### Post date: [June 21, 2021, 4:36am UTC](https://community.glideapps.com/t/find-from-a-list-from-within-a-form/28106/21 "2021-06-21T04:36:56Z")

</div>

OK i see where i messed up thank you guys for your help i believe i got it from here.

[Next page](https://community.glideapps.com/t/find-from-a-list-from-within-a-form/28106.md?page=2)
