# How to remember dropdown user input / remember page (pagination)

**URL:** <https://forum.wixstudio.com/t/how-to-remember-dropdown-user-input-remember-page-pagination/27168>\
**Category:** Ask the community\
**Tags:** question, code\
**Created:** [April 14, 2020, 4:06pm UTC](https://forum.wixstudio.com/t/how-to-remember-dropdown-user-input-remember-page-pagination/27168 "2020-04-14T16:06:27Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![lianosurbancutz](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/lianosurbancutz/32/12440_2.png) [@lianosurbancutz](https://forum.wixstudio.com/u/lianosurbancutz)\
**Post date:** [April 14, 2020, 4:06pm UTC](https://forum.wixstudio.com/t/how-to-remember-dropdown-user-input-remember-page-pagination/27168/1 "2020-04-14T16:06:27Z")

</div>

I am building a single niche business directory website, users should filter the results by a drowpdown element and results showing with a repeater connected to a collection database. Everything is working great but the problem is that the filter options **gets reseted** every time the user comes back to the page, and the **pagination starts again from the first page.**  
To explain it better the process is like this: The user filters the database, finds an item they want to read up on, clicks on the item, goes to the dynamic page and when they finished reading they then click “go back” to get back to the repeater. When they get back to the repeater page the filter options resets so the user has to set the filter again to see the results they are looking for. My questions is if it’s possible to make it so the website remembers what filter selections the user selected and keep filtering the repeater like that until the user changes the filter manually.

* * *

**the code i am using to filter the dropdown till now:**

```javascript
import wixData from 'wix-data';

```

```javascript
export function dropdown1_change(event) {

```

```javascript
	let proastio = $w('#dropdown1').value;

```

```javascript
    $w('#dynamicDataset').setFilter(wixData.filter().contains('proastio', proastio));

```

```javascript
}

```

best regards  
thanks in advance for any help​:blush:😊😊

---

<div class="post-metadata">

**Author:** ![givemeawhisky](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/givemeawhisky/32/5383_2.png) [@givemeawhisky](https://forum.wixstudio.com/u/givemeawhisky)\
**Post date:** [April 14, 2020, 7:31pm UTC](https://forum.wixstudio.com/t/how-to-remember-dropdown-user-input-remember-page-pagination/27168/2 "2020-04-14T19:31:11Z")

</div>

You can look at using Wix Storage to save the users chosen dropdown value and then get it again and automatically have the dropdown set to that value again.

You can also use the same API to clear it as well if the user wants to do another search with a different value for example.

[https://www.wix.com/corvid/reference/wix-storage.html](https://www.wix.com/corvid/reference/wix-storage.html)

---

<div class="post-metadata">

**Author:** ![lianosurbancutz](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/lianosurbancutz/32/12440_2.png) [@lianosurbancutz](https://forum.wixstudio.com/u/lianosurbancutz)\
**Post date:** [April 14, 2020, 8:21pm UTC](https://forum.wixstudio.com/t/how-to-remember-dropdown-user-input-remember-page-pagination/27168/3 "2020-04-14T20:21:54Z")

</div>

i tried but still can’t solve it out  
could you please give me an example with a sniped code?

thanks in advance for your help

---

<div class="post-metadata">

**Author:** ![givemeawhisky](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/givemeawhisky/32/5383_2.png) [@givemeawhisky](https://forum.wixstudio.com/u/givemeawhisky)\
**Post date:** [April 15, 2020, 2:43am UTC](https://forum.wixstudio.com/t/how-to-remember-dropdown-user-input-remember-page-pagination/27168/4 "2020-04-15T02:43:01Z")

</div>

Have a search of the forum as there are previous posts about it even from this past week.  
[https://www.wix.com/corvid/forum/community-discussion/is-there-basic-or-super-simple-code-for-if-and-else-statements-that-show-or-hide-based-on-the-text-present](https://www.wix.com/corvid/forum/community-discussion/is-there-basic-or-super-simple-code-for-if-and-else-statements-that-show-or-hide-based-on-the-text-present)
