# Help using dropdown

**URL:** <https://forum.code.org/t/help-using-dropdown/26926>\
**Category:** CS Principles\
**Tags:** dropdown\
**Created:** [May 16, 2019, 3:02pm UTC](https://forum.code.org/t/help-using-dropdown/26926 "2019-05-16T15:02:48Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![danielplata47](https://sea2.discourse-cdn.com/flex016/user_avatar/forum.code.org/danielplata47/32/2995_2.png) [@danielplata47](https://forum.code.org/u/danielplata47)\
**Post date:** [May 16, 2019, 3:02pm UTC](https://forum.code.org/t/help-using-dropdown/26926/1 "2019-05-16T15:02:48Z")

</div>

Please I need help using a dropdown to set a new screen.

---

<div class="post-metadata">

**Author:** ![bhatnagars](https://sea2.discourse-cdn.com/flex016/user_avatar/forum.code.org/bhatnagars/32/4919_2.png) [@bhatnagars](https://forum.code.org/u/bhatnagars)\
**Post date:** [May 16, 2019, 3:45pm UTC](https://forum.code.org/t/help-using-dropdown/26926/2 "2019-05-16T15:45:01Z")

</div>

Did you try looking at the documentation at [https://code.org/applab/docs/dropdown](https://code.org/applab/docs/dropdown)?

---

<div class="post-metadata">

**Author:** ![danielplata47](https://sea2.discourse-cdn.com/flex016/user_avatar/forum.code.org/danielplata47/32/2995_2.png) [@danielplata47](https://forum.code.org/u/danielplata47)\
**Post date:** [May 16, 2019, 7:20pm UTC](https://forum.code.org/t/help-using-dropdown/26926/3 "2019-05-16T19:20:32Z")

</div>

yes, but I need to set screen when I click one option. there are a tutorial to set property using setText or getText. Thanks

---

<div class="post-metadata">

**Author:** ![bhatnagars](https://sea2.discourse-cdn.com/flex016/user_avatar/forum.code.org/bhatnagars/32/4919_2.png) [@bhatnagars](https://forum.code.org/u/bhatnagars)\
**Post date:** [May 16, 2019, 7:43pm UTC](https://forum.code.org/t/help-using-dropdown/26926/4 "2019-05-16T19:43:09Z")

</div>

Here is a pseudocode that would help

1. Get the text of the dropdown using getText as shown in the example
2. Compare the text to the options using if-else conditionals. For example:  
if (getText(“id”) == “happy”) …  
else if (getText(“id”) == “sad”) …
3. Set to a different screen in each if statement above. Use the setScreen command.

---

<div class="post-metadata">

**Author:** ![danielplata47](https://sea2.discourse-cdn.com/flex016/user_avatar/forum.code.org/danielplata47/32/2995_2.png) [@danielplata47](https://forum.code.org/u/danielplata47)\
**Post date:** [May 16, 2019, 7:45pm UTC](https://forum.code.org/t/help-using-dropdown/26926/5 "2019-05-16T19:45:29Z")

</div>

wow, thank U, I´m going to try it and I send you. so thanks
