# Perspective dropDown component event for selection

**URL:** <https://forum.inductiveautomation.com/t/perspective-dropdown-component-event-for-selection/35762>\
**Category:** Ignition\
**Tags:** ignition80\
**Created:** [June 17, 2020, 4:30pm UTC](https://forum.inductiveautomation.com/t/perspective-dropdown-component-event-for-selection/35762 "2020-06-17T16:30:47Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![mazeyrat](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/mazeyrat/32/10955_2.png) [@mazeyrat](https://forum.inductiveautomation.com/u/mazeyrat)\
**Post date:** [June 17, 2020, 4:30pm UTC](https://forum.inductiveautomation.com/t/perspective-dropdown-component-event-for-selection/35762/1 "2020-06-17T16:30:47Z")

</div>

What is the event to catch for the selection of a new element on the dropdown component ?

onSelect is triggered when the list is open but I need to determine if the selected item change.

(multiSelect = false)

---

<div class="post-metadata">

**Author:** ![zacht](https://avatars.discourse-cdn.com/v4/letter/z/ea5d25/32.png) [@zacht](https://forum.inductiveautomation.com/u/zacht)\
**Post date:** [June 17, 2020, 4:38pm UTC](https://forum.inductiveautomation.com/t/perspective-dropdown-component-event-for-selection/35762/2 "2020-06-17T16:38:11Z")

</div>

Disregard this. I was working in Vision. Sorry.

> **The answer for vision**
>
> You can use a propertyChange event.
> 
> ```auto
> if event.propertyName=='selectedStringValue':
> print 'test' # or do something more useful
> 
> ```
> 
> you can also use
> 
> ```auto
> if event.propertyName=='selectedValue':
> print 'a'
> 
> ```
> 
> if you want to look at the integer value instead of the string.

---

<div class="post-metadata">

**Author:** ![paul-griffith](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/paul-griffith/32/37249_2.png) [@paul-griffith](https://forum.inductiveautomation.com/u/paul-griffith)\
**Post date:** [June 17, 2020, 4:41pm UTC](https://forum.inductiveautomation.com/t/perspective-dropdown-component-event-for-selection/35762/3 "2020-06-17T16:41:25Z")

</div>

`onActionPerformed` will fire when the dropdown makes a new selection - you can verify with `system.perspective.print(self.props.value)`. You could also add a property change script to the `value` prop directly (just right click -\> Add Change Script).
