# Reset Search Input

**URL:** <https://forum.finsweet.com/t/reset-search-input/1731>\
**Category:** Attributes\
**Created:** [August 2, 2023, 9:51am UTC](https://forum.finsweet.com/t/reset-search-input/1731 "2023-08-02T09:51:25Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![moshfequr9](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.finsweet.com/moshfequr9/32/609_2.png) [@moshfequr9](https://forum.finsweet.com/u/moshfequr9)\
**Post date:** [August 2, 2023, 9:51am UTC](https://forum.finsweet.com/t/reset-search-input/1731/1 "2023-08-02T09:51:25Z")

</div>

We have a filter. It has a category filter and a search filter. What we want to do is when you click the close icon it will only clear the search filter. Not the category filter too. We tried to use JS to clear the input value but it does not clear the filter for the search input.

 ![image](https://europe1.discourse-cdn.com/flex013/uploads/finsweet1/original/2X/9/94289f33aea4b6507aaae15697f66c003d25f5a3.png)

---

<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:** [August 2, 2023, 6:12pm UTC](https://forum.finsweet.com/t/reset-search-input/1731/2 "2023-08-02T18:12:35Z")

</div>

Hey @moshfequr9! You can select which filters to clear with the `fs-cmsfilter-clear = IDENTIFIER` option shown below.

 ![Screen Shot 2023-08-02 at 12.11.28](https://europe1.discourse-cdn.com/flex013/uploads/finsweet1/original/2X/a/abf98bdc1b4c628549a8337d5ecbd88c499e310e.png)

---

<div class="post-metadata">

**Author:** ![moshfequr9](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.finsweet.com/moshfequr9/32/609_2.png) [@moshfequr9](https://forum.finsweet.com/u/moshfequr9)\
**Post date:** [August 3, 2023, 5:37am UTC](https://forum.finsweet.com/t/reset-search-input/1731/3 "2023-08-03T05:37:52Z")

</div>

@Support-Luis but what is the identifier name? fs-cmsfilter-clear=Search ? Or anything else?

---

<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:** [August 3, 2023, 4:30pm UTC](https://forum.finsweet.com/t/reset-search-input/1731/4 "2023-08-03T16:30:56Z")

</div>

@moshfequr9 yes! The identifier should be the same identifier of the field you’d like to clear.

If the input field has the `fs-cmsfilter-field = *` your clear attribute should look like this `fs-cmsfilter-clear = *`

---

<div class="post-metadata">

**Author:** ![moshfequr9](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.finsweet.com/moshfequr9/32/609_2.png) [@moshfequr9](https://forum.finsweet.com/u/moshfequr9)\
**Post date:** [August 5, 2023, 5:48am UTC](https://forum.finsweet.com/t/reset-search-input/1731/5 "2023-08-05T05:48:19Z")

</div>

I have tried that. But not working. You can check the link here [Get fuel for your Creative Journey | Crowdfundly Blog](https://crowdfundly.webflow.io/blog)

 ![crowdfundly-blog](https://europe1.discourse-cdn.com/flex013/uploads/finsweet1/original/2X/2/23eee98f3c40eb6e3733b9c142ce7ae779c15f4c.jpeg)

---

<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:** [August 7, 2023, 6:00pm UTC](https://forum.finsweet.com/t/reset-search-input/1731/6 "2023-08-07T18:00:08Z")

</div>

Hey @moshfequr9 I am afraid I do not see the `search-clear` element. Have you removed it recently? let me know if you add it once more to debug.

 ![Screen Shot 2023-08-07 at 11.57.43](https://europe1.discourse-cdn.com/flex013/uploads/finsweet1/original/2X/1/17fffb8b247a7a7b57ae15793c8296d361693610.jpeg)
