Skip Navigation

[Resolved] Custom javascript not working about the reset button is clicked

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
- 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Kolkata (GMT+05:30)

This topic contains 1 reply, has 1 voice.

Last updated by Paul Marconi 1 week, 1 day ago.

Assisted by: Minesh.

Author
Posts
#2803456
reset-button.jpg

Hi there,

We are using the Toolset Views plugin (Version 3.6.18 ) for filtering our case studies. We have added custom javascript code for the tab functionality and paste it in the JS editor. Please find our dev site below:

hidden link

Click on the 'Filters' button to open the modal too filter the case studies. The filtering works, but after clicking the clear all button (reset button) to clear the filters , the tab inside the modal doesn't work anymore. I can't switch to the 'Sectors' tab.
I thought using 'js_event_wpv_parametric_search_results_updated' js event will fix the issue, but it didn't:

jQuery( document ).on( 'js_event_wpv_parametric_search_results_updated', function( event, data ) {
//code inside
});

Is there an js event similar to 'js_event_wpv_parametric_search_results_updated' , but for after the reset button is clicked?

thank you!

#2803661

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Hello. Thank you for contacting the Toolset support.

Do you mean once you click on the clear all button (reset button) to clear the filters, the page refresh and you need to click on the 'Filters' button to open the modal and then you able to select the 'Sectors' tab but what you want is when you click on the clear all button (reset button) to clear the filters, you do not want to refresh the page and you aim that the result should be reset to default and filter popup should be available to switch to another tab? Is that correct? if yes:
- No there is no such feature available as clicking on reset button will reset the results.

However - I would like to check once and see if I've any workaround to offer. For that I need exact steps that I need to follow and at what step you want to switch to 'Sectors' tab.

*** Please make a FULL BACKUP of your database and website.***
I would also eventually need to request temporary access (WP-Admin) to your site. Preferably to a test site where the problem has been replicated if possible in order to be of better help and check if some configurations might need to be changed.

I have set the next reply to private which means only you and I have access to it.

#2804005

I have fixed the issue already. thank you!