# Resetting the dropDown Options

**URL:** <https://forum.code.org/t/resetting-the-dropdown-options/16274>\
**Category:** CS Principles\
**Created:** [May 17, 2018, 4:52am UTC](https://forum.code.org/t/resetting-the-dropdown-options/16274 "2018-05-17T04:52:15Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![jkeays](https://sea2.discourse-cdn.com/flex016/user_avatar/forum.code.org/jkeays/32/5313_2.png) [@jkeays](https://forum.code.org/u/jkeays)\
**Post date:** [May 17, 2018, 4:52am UTC](https://forum.code.org/t/resetting-the-dropdown-options/16274/1 "2018-05-17T04:52:15Z")

</div>

Please HELP:

We are able to get data from a dropDown to store in a database. As we replay the game and go back to the same screen with the same dropDown menu, we are looking to RESET the dropDown so it goes back to the first option as the default option. As of now, the dropDown displays the previous option from the last entry.

Thanks

---

<div class="post-metadata">

**Author:** ![jkeays](https://sea2.discourse-cdn.com/flex016/user_avatar/forum.code.org/jkeays/32/5313_2.png) [@jkeays](https://forum.code.org/u/jkeays)\
**Post date:** [May 17, 2018, 5:08am UTC](https://forum.code.org/t/resetting-the-dropdown-options/16274/2 "2018-05-17T05:08:45Z")

</div>

Nevermind…Here’s the solution

Use setText and enter the dropDown ID as the first parameter. Then make sure the second parameter matches the original first option. If it doesn’t match the original first option, it will be reset to BLANK and then the previous options will be hidden underneath the BLANK option.

![](https://cdck-file-uploads-us1.s3.dualstack.us-west-2.amazonaws.com/flex016/uploads/codeorgforum/original/2X/a/aaa149422a27f680498284b7d51029a7fe2c286f.png)
