# \[Bug\] Perspective Dropdown Custom Option Int Not Showing

**URL:** <https://forum.inductiveautomation.com/t/bug-perspective-dropdown-custom-option-int-not-showing/91840>\
**Category:** Ignition\
**Tags:** ignition81, perspective\
**Created:** [June 13, 2024, 8:50pm UTC](https://forum.inductiveautomation.com/t/bug-perspective-dropdown-custom-option-int-not-showing/91840 "2024-06-13T20:50:20Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Brandon\_Peterson](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/brandon_peterson/32/32960_2.png) [@Brandon\_Peterson](https://forum.inductiveautomation.com/u/Brandon_Peterson)\
**Post date:** [June 13, 2024, 8:50pm UTC](https://forum.inductiveautomation.com/t/bug-perspective-dropdown-custom-option-int-not-showing/91840/1 "2024-06-13T20:50:20Z")

</div>

I have a form (view) where a user can enter data for an object to be saved to a table.

One of the inputs is a dropdown that allows custom options (`allowCustomOptions: True`).

There is a similar form (view) used to allow edits to the object.

When I set the value of the (single select) dropdown from the `view.root.onStartup` script and that value was not one of the dropdown options (as allowed), **the dropdown appears as if it has nothing selected at all** , even when the internal `props.value` of the dropdown is set to the correct value.

_In hindsight, this doesn't have anything to do with the startup script. This was just how I ended up finding this bug._

I have observed this behavior when the value set on startup is an integer, but not when it's a string. This is what makes me think this is a bug. Integers are a valid data type for `props.value`, so they should work the same as strings.

## The Bug

When `Dropdown.props.value == 1 and 1 not in Dropdown.props.options`, we get:  
 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/1/c/1cf406b361b0d7b752ce67ea5d32d2b07d510fb3.png)

When `Dropdown.props.value == "1" and "1" not in Dropdown.props.options`, we get:  
 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/7/c/7c29a419eb557e6ef9765b14ffbd2164f09795c8.png)

### Integer

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/2/3/23d7ce9b1ca9be177c3a272592a5af8eba8ec7ed.png)

### String

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/9/d/9d662b00a9a09ae39759a89ffe32dcc428f4e45b.png)

_Ignition v8.1.35_
