# Maintain search field on refresh model fetch

**URL:** <https://forums.knack.com/t/maintain-search-field-on-refresh-model-fetch/6516>\
**Category:** Get Answers\
**Created:** [February 11, 2020, 4:29pm UTC](https://forums.knack.com/t/maintain-search-field-on-refresh-model-fetch/6516 "2020-02-11T16:29:15Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![TonyLewis75327](https://sea2.discourse-cdn.com/flex020/user_avatar/forums.knack.com/tonylewis75327/32/261_2.png) [@TonyLewis75327](https://forums.knack.com/u/TonyLewis75327)\
**Post date:** [February 11, 2020, 4:29pm UTC](https://forums.knack.com/t/maintain-search-field-on-refresh-model-fetch/6516/1 "2020-02-11T16:29:15Z")

</div>

I am using

```
Knack.views["view_1108"].model.fetch();
```

To refresh a table under a modal popup however when I close the modal the keyword search field is lost with the fetch of the new table values. Is it possible to maintain the keyword search and update the new values in the table without losing the search so when I close the modal that updated the values i don't have to enter the keyword search again.. Quick screen recording showing the table search disappearing when it gets updated after the modal updates [https://take.ms/9VbSx](https://take.ms/9VbSx)

---

<div class="post-metadata">

**Author:** ![BradStevens](https://sea2.discourse-cdn.com/flex020/user_avatar/forums.knack.com/bradstevens/32/140_2.png) [@BradStevens](https://forums.knack.com/u/BradStevens)\
**Post date:** [February 11, 2020, 5:23pm UTC](https://forums.knack.com/t/maintain-search-field-on-refresh-model-fetch/6516/2 "2020-02-11T17:23:01Z")

</div>

Hey Tony - could you grab the URL (that includes the search text for the view) and refresh that via window.location?

Or use the history.back(); function discussion here [https://support.knack.com/hc/en-us/community/posts/222504587-Filters-remain-in-place-when-returning-to-table-view](https://forums.knack.com/hc/en-us/community/posts/222504587-Filters-remain-in-place-when-returning-to-table-view)
