# Counter selected / deselected elements in Choice component

**URL:** https://community.glideapps.com/t/counter-selected-deselected-elements-in-choice-component/64042
**Category:** Ask for Help
**Created:** [July 18, 2023, 8:37am UTC](https://community.glideapps.com/t/counter-selected-deselected-elements-in-choice-component/64042 "2023-07-18T08:37:49Z")
**Posts on this page:** 9
**Page:** 1

<div class="post-metadata">

### Author: ![VadymBohdan](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/vadymbohdan/32/21195_2.png) [@VadymBohdan](https://community.glideapps.com/u/VadymBohdan)
#### Post date: [July 18, 2023, 8:37am UTC](https://community.glideapps.com/t/counter-selected-deselected-elements-in-choice-component/64042/1 "2023-07-18T08:37:49Z")

</div>

Hello colleagues.  
My question was related to multiple selection in the Choice component.  
I want to show the user how many items are Total in the list and how many he has already marked as selected.  
All this should happen in real time, both when adding data to the database and when editing it.  
Is there some way to make the glide count this?

---

<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: [July 18, 2023, 8:51am UTC](https://community.glideapps.com/t/counter-selected-deselected-elements-in-choice-component/64042/2 "2023-07-18T08:51:02Z")

</div>

It’s possible, but you will need to use a custom form. Direct the choice component at a user specific column, use a split text column to create an array from the choices, and then use a rollup column to count the items in the array.

---

<div class="post-metadata">

### Author: ![VadymBohdan](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/vadymbohdan/32/21195_2.png) [@VadymBohdan](https://community.glideapps.com/u/VadymBohdan)
#### Post date: [July 18, 2023, 2:20pm UTC](https://community.glideapps.com/t/counter-selected-deselected-elements-in-choice-component/64042/3 "2023-07-18T14:20:46Z")

</div>

As far as I understand, this way of counting will have an extremely negative impact on the number of updates per month?

---

<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: [July 18, 2023, 2:27pm UTC](https://community.glideapps.com/t/counter-selected-deselected-elements-in-choice-component/64042/4 "2023-07-18T14:27:35Z")

</div>

It will incur more updates than a native form, yes.  
That’s the trade off.

---

<div class="post-metadata">

### Author: ![VadymBohdan](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/vadymbohdan/32/21195_2.png) [@VadymBohdan](https://community.glideapps.com/u/VadymBohdan)
#### Post date: [July 18, 2023, 2:38pm UTC](https://community.glideapps.com/t/counter-selected-deselected-elements-in-choice-component/64042/5 "2023-07-18T14:38:31Z")

</div>

Thank you. It looks like I’m going to have to make a difficult choice between the number of updates and user experience.

By the way, will the method described by you work not only in the case of editing, but also when adding?

---

<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: [July 18, 2023, 2:40pm UTC](https://community.glideapps.com/t/counter-selected-deselected-elements-in-choice-component/64042/6 "2023-07-18T14:40:31Z")

</div>

Yes, it will work with both adding and editing.

---

<div class="post-metadata">

### Author: ![VadymBohdan](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/vadymbohdan/32/21195_2.png) [@VadymBohdan](https://community.glideapps.com/u/VadymBohdan)
#### Post date: [July 18, 2023, 4:01pm UTC](https://community.glideapps.com/t/counter-selected-deselected-elements-in-choice-component/64042/7 "2023-07-18T16:01:31Z")

</div>

I tried to implement this idea in different ways and it didn’t work.  
Until you press the “Submit” button, the counter does not respond to pressing Choice.  
What’s wrong?

 ![Przechwytywanie](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/5/e/5e41bf3e63542935e2f2eb0470c486329259d7ed.jpeg)

---

<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: [July 18, 2023, 4:03pm UTC](https://community.glideapps.com/t/counter-selected-deselected-elements-in-choice-component/64042/8 "2023-07-18T16:03:23Z")

</div>

Are you using a [Custom Form](https://community.glideapps.com/t/how-do-i-create-a-custom-form/25014)?

---

<div class="post-metadata">

### Author: ![VadymBohdan](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/vadymbohdan/32/21195_2.png) [@VadymBohdan](https://community.glideapps.com/u/VadymBohdan)
#### Post date: [July 19, 2023, 9:36am UTC](https://community.glideapps.com/t/counter-selected-deselected-elements-in-choice-component/64042/9 "2023-07-19T09:36:10Z")

</div>

Well, of course not ))  
Thank you
