# How to reset a dropdown element?

**URL:** https://community.weweb.io/t/how-to-reset-a-dropdown-element/5436
**Category:** How do I?
**Created:** [November 16, 2023, 2:19pm UTC](https://community.weweb.io/t/how-to-reset-a-dropdown-element/5436 "2023-11-16T14:19:23Z")
**Posts on this page:** 1
**Showing post:** 3

<div class="post-metadata">

### Author: ![Kevin](https://sea2.discourse-cdn.com/flex016/user_avatar/community.weweb.io/kevin/32/13285_2.png) [@Kevin](https://community.weweb.io/u/Kevin)
#### Post date: [November 30, 2023, 6:23pm UTC](https://community.weweb.io/t/how-to-reset-a-dropdown-element/5436/3 "2023-11-30T18:23:24Z")

</div>

Hey @edbernal sorry for the late reply

Indeed, this is an automatic behavior of the element over which it is rather difficult to have control.  
Nevertheless, I’ve come up with a little hack that may enable you to get the expected result if your select is not too heavy.

Create a variable that you can name selectVisible, for example. It will be a boolean set to true by default.  
Then bind the select’s conditional rendering to this variable.

 ![image](https://us1.discourse-cdn.com/flex016/uploads/weweb/original/2X/5/531d3668524429398662b96a37a1eae6c1d5793f.png)

And lastly, on the Clear icon element, add a workflow to the click. This workflow will:

- Change variable → selectVisible to false
- Change variable → selectVisible to true

 ![image](https://us1.discourse-cdn.com/flex016/uploads/weweb/original/2X/0/0c174ff1225d894bf83eb295829dec6c1046ce26.png)  
 ![image](https://us1.discourse-cdn.com/flex016/uploads/weweb/original/2X/0/04b5c41c50824fdc60fe6b3894ff66c022dc5904.png)

---

_[View the full topic](https://community.weweb.io/t/how-to-reset-a-dropdown-element/5436)._
