# Edit record with tags

**URL:** https://community.glideapps.com/t/edit-record-with-tags/64879
**Category:** Ask for Help
**Created:** [August 9, 2023, 11:56pm UTC](https://community.glideapps.com/t/edit-record-with-tags/64879 "2023-08-09T23:56:38Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![meg](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/meg/32/61386_2.png) [@meg](https://community.glideapps.com/u/meg)
#### Post date: [August 9, 2023, 11:56pm UTC](https://community.glideapps.com/t/edit-record-with-tags/64879/1 "2023-08-09T23:56:38Z")

</div>

I have a table called ‘Business Activities’ and another table called ‘Tags’, both are Glide tables. Users can add new Tags, and then assign multiple tags to a Business Activity. The two tables are connected through relations both ways.

I would like a user to be able to add/remove Tags from a record. In a collection, they can click ‘Edit’ to open a slide in window, where I have included Tags to update. However, if the user has two or more tags selected, only one shows up on the drop down. For example, this record is marked with both Corn and US, but only Corn is shown as selected when the user opens the edit window.

 ![Screenshot 2023-08-09 at 7.51.04 PM](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/4/d/4d58d2ef4e44f517f7004e209a3a41de866c9498.png)

Any suggestions on how to fix this, or another approach to take?

---

<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: [August 10, 2023, 1:04am UTC](https://community.glideapps.com/t/edit-record-with-tags/64879/2 "2023-08-10T01:04:41Z")

</div>

How are you allowing it to be added in the first place? I think a choice component that allows multiple choices would be ideal here?

---

<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: [August 10, 2023, 1:16am UTC](https://community.glideapps.com/t/edit-record-with-tags/64879/3 "2023-08-10T01:16:32Z")

</div>

As it so happens, I created a concept App some time ago that demonstrates a technique for dynamically managing tags with native tables. But because of a long standing Glide bug I was never able to share it. That bug was finally fixed yesterday, so now I can share it as a template.

Take a look at the below. If it does what you are looking for you should be able to copy and study it.

> **[Dynamic Tags](https://go.glideapps.com/template/BbleVXSXzJiv9oULS4Ca-template-published?privateTemplateToken=L3Ihn8qBXNTKWmmGPiKx)**

---

<div class="post-metadata">

### Author: ![meg](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/meg/32/61386_2.png) [@meg](https://community.glideapps.com/u/meg)
#### Post date: [August 10, 2023, 1:44am UTC](https://community.glideapps.com/t/edit-record-with-tags/64879/4 "2023-08-10T01:44:52Z")

</div>

Thanks @ThinhDinh and @Darren_Murphy !

How my tags are added: There is a tags layout where the user can create tags. Tags are specific to a user’s company account. And in a separate layout they can add Business Activities and use the choice with multi select component.

So let’s say a Business Activity called ‘Grain Mill’ is created, the user can choose the pre-created tags ‘Corn’ and ‘US’. This all works fine. They can see ‘Grain Mill’ under each tag, and they can see both tags under ‘Grain Mill’.

The issue is if the user wants to add or remove tags from the record. On the edit window, I again used the Choice component, and they can select multiple tags. However, the field has ‘Corn’ already selected, which is great, but only ‘Corn’ is selected in the dropdown. ‘US’ is not shown as being selected though the tag exists. The user can then check and uncheck the other options, but the issue is having only one random tag shown when the edit screen opens.

@Darren_Murphy , your app looks amazing, even if a bit complicated. I could take this approach and let users select tags as a collection inside the Business Activity record. But does your app allow the user to create their own tags?

---

<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: [August 10, 2023, 1:52am UTC](https://community.glideapps.com/t/edit-record-with-tags/64879/5 "2023-08-10T01:52:27Z")

</div>

> [@meg](#):
>
> But does your app allow the user to create their own tags?

Yes.  
If you click into an item details screen, you’ll see that the user has the option of selecting from the existing list of tags, or adding a new one by typing it.

 ![CleanShot 2023-08-10 at 09.49.49@2x](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/8/a/8ae5683bceda998b883b826a1f3aea76e36e1b12.png)

---

<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: [August 10, 2023, 1:53am UTC](https://community.glideapps.com/t/edit-record-with-tags/64879/6 "2023-08-10T01:53:14Z")

</div>

> [@meg](#):
>
> The issue is if the user wants to add or remove tags from the record. On the edit window, I again used the Choice component, and they can select multiple tags. However, the field has ‘Corn’ already selected, which is great, but only ‘Corn’ is selected in the dropdown. ‘US’ is not shown as being selected though the tag exists. The user can then check and uncheck the other options, but the issue is having only one random tag shown when the edit screen opens.

Sounds like something is wrong here. I would appreciate some screenshots on how you’re setting that up.

---

<div class="post-metadata">

### Author: ![meg](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/meg/32/61386_2.png) [@meg](https://community.glideapps.com/u/meg)
#### Post date: [August 10, 2023, 5:07pm UTC](https://community.glideapps.com/t/edit-record-with-tags/64879/8 "2023-08-10T17:07:59Z")

</div>

I found a workaround: I updated the data from the edit screen, and it seemed to work after that.
