# 4.13 Drop Down Help

**URL:** <https://forum.code.org/t/4-13-drop-down-help/14376>\
**Category:** Unit and Lesson Discussion\
**Tags:** applab, lesson13, dropdown, csd-unit-4, csd-unit-4-lesson-13\
**Created:** [February 13, 2018, 6:10pm UTC](https://forum.code.org/t/4-13-drop-down-help/14376 "2018-02-13T18:10:28Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![josh](https://sea2.discourse-cdn.com/flex016/user_avatar/forum.code.org/josh/32/868_2.png) [@josh](https://forum.code.org/u/josh)\
**Post date:** [February 14, 2018, 4:50pm UTC](https://forum.code.org/t/4-13-drop-down-help/14376/2 "2018-02-14T16:50:16Z")

</div>

Dropdowns are bit more complicated than buttons because we need to add a conditional inside the event to check which option was selected. Because this is beyond the scope of programming, students may have to move to the full App Lab to get access to these commands. Assuming a dropdown with id “menu”, your code might look like:

```javascript
onEvent("menu", "change", function(event) {
  var choice = getProperty("menu", "value");
  if (choice == "Red") {
    setScreen("red");
  } else if (choice == "Green") {
    setScreen("green");
  } else if (choice == "Blue") {
    setScreen("blue");
  }
});

```

> **[Check out what I made](https://studio.code.org/projects/applab/YM1j8Xcd78R8rGlQ4lgApw/view)**
>
> I wrote the code myself with Code.org

---

_[View the full topic](https://forum.code.org/t/4-13-drop-down-help/14376)._
