# Perspective dropdown not respecting isDisabled

**URL:** <https://forum.inductiveautomation.com/t/perspective-dropdown-not-respecting-isdisabled/84405>\
**Category:** Ignition\
**Tags:** perspective\
**Created:** [January 17, 2024, 7:32pm UTC](https://forum.inductiveautomation.com/t/perspective-dropdown-not-respecting-isdisabled/84405 "2024-01-17T19:32:46Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![PaloAuto33](https://avatars.discourse-cdn.com/v4/letter/p/b9e5f3/32.png) [@PaloAuto33](https://forum.inductiveautomation.com/u/PaloAuto33)\
**Post date:** [January 17, 2024, 7:32pm UTC](https://forum.inductiveautomation.com/t/perspective-dropdown-not-respecting-isdisabled/84405/1 "2024-01-17T19:32:46Z")

</div>

Using 8.1.13

The Perspective dropdown component is not respecting the isDisabled setting.

When I use a script to read all of the devices in a Gateway using system.device.listDevices() to create a dataset and then manipulate it so there are columns for label, value and isDisabled into a tag and then bind that tag to a Perspective dropdown component the UI is not behaving as expected.

When there is a column called isDisabled ALL items in the dropdown are disabled and none can be selected. If I delete the isDisabled column then items can be selected but now there are devices that are not enabled listed which is not what is desired.

Can not select any items no matter if isDisabled is True or False

 ![Can not select items - cropped](https://us1.discourse-cdn.com/inductiveautomation/original/3X/4/5/453c6e2b39636bdea289db5badf1fdab2a941093.png)

This is the dataset bound to the dropdown

 ![Can not select dataset - cropped](https://us1.discourse-cdn.com/inductiveautomation/original/3X/7/3/73ae7e7db885b7d43a60b2f4aa88741d3dc20932.png)

If the isDisabled column is removed then all items are selectable  
 ![Can select ALL items - cropped](https://us1.discourse-cdn.com/inductiveautomation/original/3X/e/3/e3cbe291ed11f14275620d27e1d768134f56f881.png)

This is the dataset bound to the dropdown

 ![Can select ALL dataset - cropped](https://us1.discourse-cdn.com/inductiveautomation/original/3X/e/b/ebf362aefab56ef4cc9cc69b6553c415f4cceb90.png)

Is this a feature or a bug?

Thanks!

Scott

---

<div class="post-metadata">

**Author:** ![cmallonee](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/cmallonee/32/6416_2.png) [@cmallonee](https://forum.inductiveautomation.com/u/cmallonee)\
**Post date:** [January 17, 2024, 10:15pm UTC](https://forum.inductiveautomation.com/t/perspective-dropdown-not-respecting-isdisabled/84405/2 "2024-01-17T22:15:47Z")

</div>

What is the type of the column you're using for `isDisabled`? That looks like a String column, and strings will always evaluate as `True`. This would seem to explain the behavior you're seeing. Make sure your `isDisabled` DataSet column is using the Boolean data type.  
 ![Screenshot 2024-01-17 at 2.17.40 PM](https://us1.discourse-cdn.com/inductiveautomation/original/3X/2/e/2ea5101acfa70a9cd3867a1e57f5e00cb692c000.png)

 ![Screenshot 2024-01-17 at 2.18.12 PM](https://us1.discourse-cdn.com/inductiveautomation/original/3X/1/f/1f6f174f8cdb13e9036e538b4340fa20c52c6972.png)

---

<div class="post-metadata">

**Author:** ![PaloAuto33](https://avatars.discourse-cdn.com/v4/letter/p/b9e5f3/32.png) [@PaloAuto33](https://forum.inductiveautomation.com/u/PaloAuto33)\
**Post date:** [January 18, 2024, 1:40pm UTC](https://forum.inductiveautomation.com/t/perspective-dropdown-not-respecting-isdisabled/84405/3 "2024-01-18T13:40:46Z")

</div>

You nailed it. The isDisabled column is/was a string data type. Changing it to a boolean solved the problem. Thank you.
