# How to reset a search box by a click

**URL:** <https://forum.bubble.io/t/how-to-reset-a-search-box-by-a-click/189074>\
**Category:** Need help\
**Created:** [January 31, 2022, 9:18am UTC](https://forum.bubble.io/t/how-to-reset-a-search-box-by-a-click/189074 "2022-01-31T09:18:21Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![siddharth](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/siddharth/32/99706_2.png) [@siddharth](https://forum.bubble.io/u/siddharth)\
**Post date:** [January 31, 2022, 9:18am UTC](https://forum.bubble.io/t/how-to-reset-a-search-box-by-a-click/189074/1 "2022-01-31T09:18:21Z")

</div>

I have a searchbox - pickup  
its initial value is current users geographical position  
you can type in it to select from the addresses provided by google maps search or else you can leave it by default current geo address.

![BMW](https://us1.discourse-cdn.com/bubble/original/3X/3/0/30257b589345f043948374a8b4a358d8e7f5676e.png)

there is a small green location icon,  
i want that if user clicks on that green icon, the search-box - pickup value to be set to current geo address.

imagine if you just selected your own address by selecting from the autocomplete list but now you want to put there your current geo location, in this case you need to refresh the page to load the initial value. That job should be done by using that icon…

Thanks,

---

<div class="post-metadata">

**Author:** ![rpetribu](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/rpetribu/32/90852_2.png) [@rpetribu](https://forum.bubble.io/u/rpetribu)\
**Post date:** [January 31, 2022, 9:49am UTC](https://forum.bubble.io/t/how-to-reset-a-search-box-by-a-click/189074/2 "2022-01-31T09:49:56Z")

</div>

If the “inicial value” of this search box already is the user’s location, you just need to use the action to “reset group/popup” (and reset the group where this input is) to reset the input to its inicitial state.

---

<div class="post-metadata">

**Author:** ![siddharth](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/siddharth/32/99706_2.png) [@siddharth](https://forum.bubble.io/u/siddharth)\
**Post date:** [January 31, 2022, 10:01am UTC](https://forum.bubble.io/t/how-to-reset-a-search-box-by-a-click/189074/3 "2022-01-31T10:01:21Z")

</div>

thanks for your answer it helped. previously i tried using reset relevant inputs and it didn’t worked.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/bubble/original/3X/2/8/2847faa74692c2ffa5d939d3dc3724cdd060d247.png) [@system](https://forum.bubble.io/u/system)\
**Post date:** [April 11, 2022, 9:19am UTC](https://forum.bubble.io/t/how-to-reset-a-search-box-by-a-click/189074/4 "2022-04-11T09:19:01Z")

</div>

This topic was automatically closed after 70 days. New replies are no longer allowed.
