# Trying Multiple selection in list viewer

**URL:** <https://community.thunkable.com/t/trying-multiple-selection-in-list-viewer/1653989>\
**Category:** Questions about Thunkable X\
**Tags:** beginner, listviewer\
**Created:** [December 14, 2021, 6:18am UTC](https://community.thunkable.com/t/trying-multiple-selection-in-list-viewer/1653989 "2021-12-14T06:18:08Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![naitikjain99wz6mu](https://avatars.discourse-cdn.com/v4/letter/n/7ea924/32.png) [@naitikjain99wz6mu](https://community.thunkable.com/u/naitikjain99wz6mu)\
**Post date:** [December 14, 2021, 6:18am UTC](https://community.thunkable.com/t/trying-multiple-selection-in-list-viewer/1653989/1 "2021-12-14T06:18:08Z")

</div>

When I select items from color list viewer, that particular item get removed from the list. I want that only selected item remain in list and other gets removed. Also, whenever i select an item the list viewer closes, i need to click again to see all the color.

 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/e/e/eec7f9ea71d2464b3b0257212014a91677b9d0d9.png)

---

<div class="post-metadata">

**Author:** ![tatiang](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/tatiang/32/55482_2.png) [@tatiang](https://community.thunkable.com/u/tatiang)\
**Post date:** [December 14, 2021, 6:46am UTC](https://community.thunkable.com/t/trying-multiple-selection-in-list-viewer/1653989/2 "2021-12-14T06:46:15Z")

</div>

> [@naitikjain99wz6mu](#):
>
> I want that only selected item remain in list and other gets removed.

If you want the selected color to replace the entire list, then `set app variable color list to list [item]`. You’ll need the `list [1, 2, 3]` block for that.

---

<div class="post-metadata">

**Author:** ![naitikjain99wz6mu](https://avatars.discourse-cdn.com/v4/letter/n/7ea924/32.png) [@naitikjain99wz6mu](https://community.thunkable.com/u/naitikjain99wz6mu)\
**Post date:** [December 14, 2021, 1:49pm UTC](https://community.thunkable.com/t/trying-multiple-selection-in-list-viewer/1653989/3 "2021-12-14T13:49:19Z")

</div>

Sorry, I didn’t get you. How and where should i put that? In if condition or into the function??

---

<div class="post-metadata">

**Author:** ![tatiang](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/tatiang/32/55482_2.png) [@tatiang](https://community.thunkable.com/u/tatiang)\
**Post date:** [December 14, 2021, 3:48pm UTC](https://community.thunkable.com/t/trying-multiple-selection-in-list-viewer/1653989/4 "2021-12-14T15:48:45Z")

</div>

Instead of this block:

 ![eec7f9ea71d2464b3b0257212014a91677b9d0d9](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/9/0/90414d0bb1f0cd78142d7a09a7711625fba70af0.png)

Use this:

![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/2/7/279a32d65f7d5581515e0e50ae07d86554cf3339.png)

This is the list block I used:

![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/0/6/0653d8e910267f0d891ddc293d5e0a9b6cf59728.png)

So instead of removing the selected color from the list, the selected color will now be the **only** item in the list.

---

<div class="post-metadata">

**Author:** ![naitikjain99wz6mu](https://avatars.discourse-cdn.com/v4/letter/n/7ea924/32.png) [@naitikjain99wz6mu](https://community.thunkable.com/u/naitikjain99wz6mu)\
**Post date:** [December 14, 2021, 5:06pm UTC](https://community.thunkable.com/t/trying-multiple-selection-in-list-viewer/1653989/5 "2021-12-14T17:06:41Z")

</div>

Thank You!!!

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/0/f/0f59f292712368bce16ff80133ae10de8a6f27e8.png) [@system](https://community.thunkable.com/u/system)\
**Post date:** [March 14, 2022, 5:06pm UTC](https://community.thunkable.com/t/trying-multiple-selection-in-list-viewer/1653989/6 "2022-03-14T17:06:49Z")

</div>

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