# Limit multiple selection option

**URL:** https://community.glideapps.com/t/limit-multiple-selection-option/38475
**Category:** Ask for Help
**Created:** [February 14, 2022, 5:56pm UTC](https://community.glideapps.com/t/limit-multiple-selection-option/38475 "2022-02-14T17:56:01Z")
**Posts on this page:** 13
**Page:** 1

<div class="post-metadata">

### Author: ![Hassan\_Nadeem](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/hassan_nadeem/32/72956_2.png) [@Hassan\_Nadeem](https://community.glideapps.com/u/Hassan_Nadeem)
#### Post date: [February 14, 2022, 5:56pm UTC](https://community.glideapps.com/t/limit-multiple-selection-option/38475/1 "2022-02-14T17:56:01Z")

</div>

Hi Glide Community,

I am making an app for a consultancy firm. I am making a form where the students can select any one preferred country to study and then select UPTO 3 universities in that country. **If I do a dropdown menu with multiple selections, how do I limit them to select just 3 universities out of 100s of universities?**

---

<div class="post-metadata">

### Author: ![Uzo](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/uzo/32/22639_2.png) [@Uzo](https://community.glideapps.com/u/Uzo)
#### Post date: [February 14, 2022, 6:19pm UTC](https://community.glideapps.com/t/limit-multiple-selection-option/38475/2 "2022-02-14T18:19:13Z")

</div>

how do you do a drop-down menu? If from inline list… you can limit it by adjusting options:

![Screen Shot 2022-02-14 at 1.18.36 PM](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/c/9/c92b26b208e5d2aab37bcaf7464a517790da9c6f.png)

---

<div class="post-metadata">

### Author: ![Hassan\_Nadeem](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/hassan_nadeem/32/72956_2.png) [@Hassan\_Nadeem](https://community.glideapps.com/u/Hassan_Nadeem)
#### Post date: [February 14, 2022, 6:40pm UTC](https://community.glideapps.com/t/limit-multiple-selection-option/38475/3 "2022-02-14T18:40:20Z")

</div>

yes I am doing it from an inline list. Limiting number of items will reduce the items shown. I want a limited multiple selection option.

For example:  
I have a list of 10 universities. I want users to select not more than 3 universities based on their preference. If I limit the number of items to “3” then only 3 items will be shown in the dropdown menu.

---

<div class="post-metadata">

### Author: ![Uzo](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/uzo/32/22639_2.png) [@Uzo](https://community.glideapps.com/u/Uzo)
#### Post date: [February 14, 2022, 6:45pm UTC](https://community.glideapps.com/t/limit-multiple-selection-option/38475/4 "2022-02-14T18:45:50Z")

</div>

then you gonna have to create a custom action, and a counter of selected items… (when the user click the item, set USC column to 1, another condition will be … if is 1 then set to 0, or clear the value), in that action do if-else condition if the counter is 3 then show a notification that “you can select only 3”

---

<div class="post-metadata">

### Author: ![Hassan\_Nadeem](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/hassan_nadeem/32/72956_2.png) [@Hassan\_Nadeem](https://community.glideapps.com/u/Hassan_Nadeem)
#### Post date: [February 14, 2022, 6:52pm UTC](https://community.glideapps.com/t/limit-multiple-selection-option/38475/5 "2022-02-14T18:52:32Z")

</div>

Yes, that is my second option. I think I will have to add row in the custom action as well, then make relationship to the original form and then do a joined list and look up for showing those selections in that form.

Was just hoping if there was a native solution for this.

---

<div class="post-metadata">

### Author: ![Uzo](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/uzo/32/22639_2.png) [@Uzo](https://community.glideapps.com/u/Uzo)
#### Post date: [February 14, 2022, 6:53pm UTC](https://community.glideapps.com/t/limit-multiple-selection-option/38475/6 "2022-02-14T18:53:39Z")

</div>

you don’t need to add a row… just a USC column to mark selection… no relations are needed at this point

> **[Time & Address Picker test](https://test-sa.glideapp.io/dl/ewAiAHQAIgA6ADcALAAiAHMAIgA6ACIAbQBlAG4AdQAtADMANABkADYANQAyAGMANgAtADIAYgA5ADgALQA0AGUAZQBlAC0AOQBmADIANwAtAGYANABjADEANAA4AGIAYgAzADQAZAAzAC0AZgAzAGEANAA5AGMAYwA0ADQAOAA0ADkAZQA2AGQAYQA5ADEAOQA1ADcANQA1AGMANwAxADEAYQAxAGEANAAzACIALAAiAHIAIgA6ACIAeABrADEARQBGADMARgBhAFMAYwBhAC0AMwBKADkAdQBRAGgAbABTAG0AdwAiACwAIgBuACIAOgAiAEMAaABlAGMAawAgAEwAaQBzAHQAIABtAHUAbAB0AGkAcABsAGUAIgB9AA==)**
>
> vCard + pick the time using buttons + enter address or place name, and this App will find the proper address and geolocation

---

<div class="post-metadata">

### Author: ![Hassan\_Nadeem](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/hassan_nadeem/32/72956_2.png) [@Hassan\_Nadeem](https://community.glideapps.com/u/Hassan_Nadeem)
#### Post date: [February 14, 2022, 8:27pm UTC](https://community.glideapps.com/t/limit-multiple-selection-option/38475/7 "2022-02-14T20:27:55Z")

</div>

I think you have used the Trebuchet method right?

---

<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: [February 14, 2022, 11:59pm UTC](https://community.glideapps.com/t/limit-multiple-selection-option/38475/8 "2022-02-14T23:59:14Z")

</div>

You can use 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 particula…

Then I assume you story the university choices in a field called “Universities”.

Use a split text column to split that into an array and use a plugin to count the array length. It should give you the number to do some conditional visibilities.

---

<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: [February 15, 2022, 2:51am UTC](https://community.glideapps.com/t/limit-multiple-selection-option/38475/9 "2022-02-15T02:51:48Z")

</div>

For this case, I think the simplest option would be to use 3 separate choice components.

---

<div class="post-metadata">

### Author: ![Hassan\_Nadeem](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/hassan_nadeem/32/72956_2.png) [@Hassan\_Nadeem](https://community.glideapps.com/u/Hassan_Nadeem)
#### Post date: [February 15, 2022, 1:09pm UTC](https://community.glideapps.com/t/limit-multiple-selection-option/38475/10 "2022-02-15T13:09:25Z")

</div>

Yes, have done it this way according to 1st 2nd and 3rd preferences.

---

<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: [February 16, 2022, 12:02am UTC](https://community.glideapps.com/t/limit-multiple-selection-option/38475/11 "2022-02-16T00:02:15Z")

</div>

If you go that route, make sure you filter the choices so that you won’t get duplicate choices (I assume it’s not what you want).

---

<div class="post-metadata">

### Author: ![Hassan\_Nadeem](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/hassan_nadeem/32/72956_2.png) [@Hassan\_Nadeem](https://community.glideapps.com/u/Hassan_Nadeem)
#### Post date: [February 16, 2022, 12:15pm UTC](https://community.glideapps.com/t/limit-multiple-selection-option/38475/12 "2022-02-16T12:15:08Z")

</div>

Yes already filtered them out. Thanks for the suggestion anyways 🙂

---

<div class="post-metadata">

### Author: ![system](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/system/32/53398_2.png) [@system](https://community.glideapps.com/u/system)
#### Post date: [February 17, 2022, 12:15pm UTC](https://community.glideapps.com/t/limit-multiple-selection-option/38475/13 "2022-02-17T12:15:33Z")

</div>

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