Skip Navigation

[Resolved] Question: is a filter set?

This support ticket is created 7 years, 5 months ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- 12:00 – 17:00 12:00 – 17:00 12:00 – 17:00 12:00 – 17:00 12:00 – 17:00 -
- 18:00 – 21:00 18:00 – 21:00 18:00 – 21:00 18:00 – 21:00 18:00 – 21:00 -

Supporter timezone: Asia/Karachi (GMT+05:00)

This topic contains 2 replies, has 2 voices.

Last updated by peg 7 years, 5 months ago.

Assisted by: Noman.

Author
Posts
#532941

peg

Hi there,

Is there a way to find out if in a parametric search a filter is set?

In my post archive view I am hiding the filter with jQuery and the filter can be toggled on and off via a button. Once the search is done the filter settings disappear again.
Now I need a way to display a reset button next to the toggle button - but only if the archive view has been filtered.
Is there a way to achieve that?

#532976

Noman
Supporter

Languages: English (English )

Timezone: Asia/Karachi (GMT+05:00)

Hi Peg,

Thank you for contacting Toolset support.

You can display the button using conditional display using some custom coding:
https://toolset.com/documentation/user-guides/conditional-html-output-in-views/

Further, I suggest you try setup two pages, first page display only the filter form, set the form target to another page, which display both the filter form, results and RESET button. Then you can redirect the RESET button on first page where you have displayed the filters.

More help: Displaying the Parametric Search View on the Site:
https://toolset.com/documentation/user-guides/front-page-filters/

Since this View is a parametric search, it includes both a ‘search box’ and a ‘results’ sections. Select if you want to display both of them in the same page or in different pages.
hidden link

Thank you

#533023

peg

Hi Noman,
I found another approach. Thanks.