# Multi-Selection Dropdown Array Value used for Tooltip

**URL:** <https://forum.inductiveautomation.com/t/multi-selection-dropdown-array-value-used-for-tooltip/94775>\
**Category:** General Discussion\
**Tags:** ignition81, perspective, scripting\
**Created:** [August 17, 2024, 12:05am UTC](https://forum.inductiveautomation.com/t/multi-selection-dropdown-array-value-used-for-tooltip/94775 "2024-08-17T00:05:44Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![MGem](https://avatars.discourse-cdn.com/v4/letter/m/958977/32.png) [@MGem](https://forum.inductiveautomation.com/u/MGem)\
**Post date:** [August 17, 2024, 12:05am UTC](https://forum.inductiveautomation.com/t/multi-selection-dropdown-array-value-used-for-tooltip/94775/1 "2024-08-17T00:05:44Z")

</div>

Hi there!

I am new to perspective and I'm trying to use a multi-select dropdown in a project.  
 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/5/f/5fe8c59f941b39b5ea9387469ade31c72f73bd3a.png)

Where I struggle now is to be able to see all selected options in another part of the screen (on top of the dropdown component) and be able to remove it from there. So basically, showing that same bubble with the "x".

I'm also trying to show the selected options in the tooltip by binding the tooltip text to the dropdown value. Unfortunately, tooltip text does not accept array which is what the dropdown value gives. I'm thinking of converting the array to a one-linear string value but I'm not sure how to do this.

---

<div class="post-metadata">

**Author:** ![Transistor](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/transistor/32/3380_2.png) [@Transistor](https://forum.inductiveautomation.com/u/Transistor)\
**Post date:** [August 17, 2024, 12:19am UTC](https://forum.inductiveautomation.com/t/multi-selection-dropdown-array-value-used-for-tooltip/94775/2 "2024-08-17T00:19:41Z")

</div>

There's no need for either. Just set,  
`wrapMultiSelectValues : true`.

![Multselect dropdown](https://us1.discourse-cdn.com/inductiveautomation/original/3X/d/3/d39b3b51f9a87ead35830c30ebeb7dde73cf9b8d.png)

The dropdown will expand to show the selected options and you can delete them from there. (You may have to use flex containers to allow the dropdown expansion.)

Welcome to the forum.

---

<div class="post-metadata">

**Author:** ![MGem](https://avatars.discourse-cdn.com/v4/letter/m/958977/32.png) [@MGem](https://forum.inductiveautomation.com/u/MGem)\
**Post date:** [August 17, 2024, 12:36am UTC](https://forum.inductiveautomation.com/t/multi-selection-dropdown-array-value-used-for-tooltip/94775/3 "2024-08-17T00:36:58Z")

</div>

Thank you Transistor!

I apologize, I forgot to mention. We want the size of dropdown to be fixed (32), and so the `wrapMultiSelectValues` will need to be false.

---

<div class="post-metadata">

**Author:** ![deon.korb](https://avatars.discourse-cdn.com/v4/letter/d/8c91f0/32.png) [@deon.korb](https://forum.inductiveautomation.com/u/deon.korb)\
**Post date:** [August 17, 2024, 4:02pm UTC](https://forum.inductiveautomation.com/t/multi-selection-dropdown-array-value-used-for-tooltip/94775/4 "2024-08-17T16:02:17Z")

</div>

I tried to illustrate the shortcomings of the current implementation, but got nowhere:

> [@Perspective Dropdown Multi Select](https://forum.inductiveautomation.com/t/perspective-dropdown-multi-select/62588):
>
> I have dropdown configured for the a days of week selection in a table. The user experience is not great, as there is not enough space to show all the pills selected. See below: [image] All weekdays are actually selected in the bottom example, but there’s no way to see that. I’ve seen other dropdown multi selection elsewhere that solves this problem as follows: [image] Is there a way to solve this in Perspective, or is it feature request time?

---

<div class="post-metadata">

**Author:** ![pascal.fragnoud](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pascal.fragnoud/32/24728_2.png) [@pascal.fragnoud](https://forum.inductiveautomation.com/u/pascal.fragnoud)\
**Post date:** [August 20, 2024, 8:07am UTC](https://forum.inductiveautomation.com/t/multi-selection-dropdown-array-value-used-for-tooltip/94775/5 "2024-08-20T08:07:16Z")

</div>

Assuming your options values and labels are different, there's some work involved to get the labels back from the values, which also depends on whether your options are in json or dataset format.

Tell us more about your setup so we can help you more accurately.
