# List box in MX2004, button works, setChangeHandler doesn't

**URL:** https://forum.kirupa.com/t/list-box-in-mx2004-button-works-setchangehandler-doesnt/123541
**Category:** Uncategorized
**Created:** [September 24, 2004, 3:35pm UTC](https://forum.kirupa.com/t/list-box-in-mx2004-button-works-setchangehandler-doesnt/123541 "2004-09-24T15:35:54Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![Sparky\_J](https://avatars.discourse-cdn.com/v4/letter/s/aeb1de/32.png) [@Sparky\_J](https://forum.kirupa.com/u/Sparky_J)
#### Post date: [September 24, 2004, 3:35pm UTC](https://forum.kirupa.com/t/list-box-in-mx2004-button-works-setchangehandler-doesnt/123541/1 "2004-09-24T15:35:54Z")

</div>

I have this code on my actions frame:

```auto
function displayDetails(){
		display_box.text = drop_down_list.getSelectedItem().data;
	}
drop_down_list.setChangeHandler("displayDetails");

```

my listBox is named “drop\_down\_list” and my text field is named “display\_box”

I have a button with this code:

```auto
on (press) {
	displayDetails();
}

```

when I press the button it works, when I just change the drop down item, nothing happens. The code looks just like the code in the tutorial, so I’m lost here.
