# Query Param Work Initially, But Can't Change Filters Afterwards

**URL:** <https://forum.finsweet.com/t/query-param-work-initially-but-cant-change-filters-afterwards/2288>\
**Category:** Attributes\
**Created:** [December 20, 2023, 1:18pm UTC](https://forum.finsweet.com/t/query-param-work-initially-but-cant-change-filters-afterwards/2288 "2023-12-20T13:18:50Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![rasheedosalem](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.finsweet.com/rasheedosalem/32/1819_2.png) [@rasheedosalem](https://forum.finsweet.com/u/rasheedosalem)\
**Post date:** [December 20, 2023, 1:18pm UTC](https://forum.finsweet.com/t/query-param-work-initially-but-cant-change-filters-afterwards/2288/1 "2023-12-20T13:18:50Z")

</div>

How can I resolve the issue where my JavaScript code successfully passes radio input values as URL parameters to a ‘filter page’, and while the Query Param solution initially presets the filter based on the URL and functions correctly, changing the filter on the page subsequently fails to work?

I have used Query Param + CMS filter on the filter page and some JS on the form page to pass the values to the URL.

---

<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:** [December 20, 2023, 2:26pm UTC](https://forum.finsweet.com/t/query-param-work-initially-but-cant-change-filters-afterwards/2288/2 "2023-12-20T14:26:33Z")

</div>

hey @rasheedosalem! There is no need to add the Query Param Attribute for this setup.

CMS Filter is powerful enough to apply these params to the filters and load the filtered list.

---

<div class="post-metadata">

**Author:** ![rasheedosalem](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.finsweet.com/rasheedosalem/32/1819_2.png) [@rasheedosalem](https://forum.finsweet.com/u/rasheedosalem)\
**Post date:** [December 20, 2023, 3:10pm UTC](https://forum.finsweet.com/t/query-param-work-initially-but-cant-change-filters-afterwards/2288/3 "2023-12-20T15:10:41Z")

</div>

Actually, it’s my mistake I was adjusting the filters but forgot to hit the submit button. Silly mistake, but it’s working now.

However, if I don’t implement the query parameters as you advised, it seems that the default filter settings, specifically the initial options, are overriding the transferred values.

Thank you for your quick response Luis.
