# Show Search Results on CMS Filter Page from a different page

**URL:** <https://forum.finsweet.com/t/show-search-results-on-cms-filter-page-from-a-different-page/857>\
**Category:** Attributes\
**Created:** [May 30, 2023, 2:09pm UTC](https://forum.finsweet.com/t/show-search-results-on-cms-filter-page-from-a-different-page/857 "2023-05-30T14:09:14Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![brian](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.finsweet.com/brian/32/330_2.png) [@brian](https://forum.finsweet.com/u/brian)\
**Post date:** [May 30, 2023, 2:09pm UTC](https://forum.finsweet.com/t/show-search-results-on-cms-filter-page-from-a-different-page/857/1 "2023-05-30T14:09:14Z")

</div>

Im sure there is an easy solution for this, just having trouble executing. Jetboost uses [this solution](https://help.jetboost.io/article/45-show-search-results-on-different-page) which works pretty well however their filtering lacks in comparison to Finsweets.

I am trying to replicate this using attributes. I want to get the initial search on the other page to add in the CMS filter field “\*”=“query” when the page loads but am not having any luck.

Has anyone successfully done this?

---

<div class="post-metadata">

**Author:** ![Support-Luis](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.finsweet.com/support-luis/32/53_2.png) [@Support-Luis](https://forum.finsweet.com/u/Support-Luis)\
**Post date:** [May 30, 2023, 4:19pm UTC](https://forum.finsweet.com/t/show-search-results-on-cms-filter-page-from-a-different-page/857/2 "2023-05-30T16:19:48Z")

</div>

Hey @brian! I am afraid this is not possible without some custom JS on your search page to generate the Query Params, CMS Filter should be able to apply the filter based on the generated URL. You can share a link to your page and I can help you out with the code if you’d like 🙂

---

<div class="post-metadata">

**Author:** ![brian](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.finsweet.com/brian/32/330_2.png) [@brian](https://forum.finsweet.com/u/brian)\
**Post date:** [May 30, 2023, 10:18pm UTC](https://forum.finsweet.com/t/show-search-results-on-cms-filter-page-from-a-different-page/857/3 "2023-05-30T22:18:59Z")

</div>

That would be awesome, thanks so much, Luis. Here is the [read only URL.](https://preview.webflow.com/preview/palmer?utm_medium=preview_link&utm_source=designer&utm_content=palmer&preview=6fe4834b52cab5b4b063cdb463e29c17&workflow=preview)

The initial simple search is on the homepage and the CMS Filters page is called Properties Finsweet

---

<div class="post-metadata">

**Author:** ![Support-Luis](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.finsweet.com/support-luis/32/53_2.png) [@Support-Luis](https://forum.finsweet.com/u/Support-Luis)\
**Post date:** [May 31, 2023, 12:23am UTC](https://forum.finsweet.com/t/show-search-results-on-cms-filter-page-from-a-different-page/857/4 "2023-05-31T00:23:54Z")

</div>

hey @brian can you try this code?

```auto
<script>
      const userInput = document.getElementById('field');
      const button = document.querySelector('.button.is-navbar3-button.custom-search.w-button');

      button.addEventListener('click', function (e) {
        e.preventDefault();
        const searchIput = userInput.value;
        const queryParam = searchIput.replaceAll(' ', '+');
        const url = '/properties-finsweet/?*=' + queryParam;
        window.location.href = url;
      });
    </script>

```

You can also look into giving your search button an `id` so we can change the big query selector to a getElementById like we have dir the input field

---

<div class="post-metadata">

**Author:** ![brian](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.finsweet.com/brian/32/330_2.png) [@brian](https://forum.finsweet.com/u/brian)\
**Post date:** [May 31, 2023, 11:25am UTC](https://forum.finsweet.com/t/show-search-results-on-cms-filter-page-from-a-different-page/857/5 "2023-05-31T11:25:55Z")

</div>

Absolutely, thanks @Support-Luis , not sure which I was supposed to but I’m assuming the homepage. Code is added.

---

<div class="post-metadata">

**Author:** ![Support-Luis](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.finsweet.com/support-luis/32/53_2.png) [@Support-Luis](https://forum.finsweet.com/u/Support-Luis)\
**Post date:** [May 31, 2023, 3:08pm UTC](https://forum.finsweet.com/t/show-search-results-on-cms-filter-page-from-a-different-page/857/6 "2023-05-31T15:08:10Z")

</div>

Yes, sorry. It should be added to the homepage. Have you tested it yet?

---

<div class="post-metadata">

**Author:** ![brian](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.finsweet.com/brian/32/330_2.png) [@brian](https://forum.finsweet.com/u/brian)\
**Post date:** [May 31, 2023, 4:30pm UTC](https://forum.finsweet.com/t/show-search-results-on-cms-filter-page-from-a-different-page/857/7 "2023-05-31T16:30:30Z")

</div>

Excellent! It works. This changes the game. Thanks so much!

---

<div class="post-metadata">

**Author:** ![fotisxen](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.finsweet.com/fotisxen/32/4464_2.png) [@fotisxen](https://forum.finsweet.com/u/fotisxen)\
**Post date:** [June 13, 2025, 10:51am UTC](https://forum.finsweet.com/t/show-search-results-on-cms-filter-page-from-a-different-page/857/8 "2025-06-13T10:51:47Z")

</div>

hey guys @brian@Support-Luis  
i also need to filter across pages  
can you please explain  
i have this finsweet filter on /properties page that the user can have multiple filters and then when he/she clicks on the submit button of the form then the filtering is appllied to my collection list  
i want also to put the filter form on my home page and and when the filters are changed and the search/submit button is pressed i want to move to the /properties page and the filters to have the values from the homepage and also of course the collection list to be filtered by them  
so if i put this code on homepage it will work?
