Skip Navigation

[Waiting for user confirmation] Filters not working as expected

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 2 replies, has 1 voice.

Last updated by Minesh 2 days, 5 hours ago.

Assisted by: Minesh.

Author
Posts
#2819248

We currently have a toolset view setup on this page hidden link (develop/Jan2025) with multiple filters.

Right now, only when filtering by age first does the next filter work, if selecting any other filters first it shows a "no results" message.

It's hard to say when the issue appeared, but on initial setup the filters were working correctly. It doesn't make a difference whether using ajax or with a submit button and full page refresh.

Any guidance here is appreciated, we can provide dashboard access if needed.

#2819299

Minesh
Supporter

Languages: English (English )

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

Hello. Thank you for contacting the Toolset support.

I try to access the problem URL you shared but I do not able to access it as it asks for authorization access details.

Can you please share authorization access details as well as admin access details and let me review your current setup and check whats going wrong with your setup.

*** Please make a FULL BACKUP of your database and website.***
I would also eventually need to request temporary access (WP-Admin and FTP) 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.

#2819463

Minesh
Supporter

Languages: English (English )

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

Can you please check now:
- hidden link

I've added the following code to your view's "Search and Pagination" section's custom JS editor section.

jQuery(document).ready(function ($){
  
  
  $('select[name="wpv-camper-type"] option[value="0"]').val('');
  $('select[name="wpv-program-type"] option[value="0"]').val('');
  $('select[name="wpv-location"] option[value="0"]').val('');

  $('select[name="wpv-camper-age"] option[value="0"]').val('');
  $('select[name="wpv-eligibility"] option[value="0"]').val('');
  $('select[name="wpvprogramdate"] option[value="0"]').val('');


});

jQuery( document ).on( 'js_event_wpv_parametric_search_form_updated', function( event, data ) {
	/**
	* data.view_unique_id (string) The View unique ID hash
	* data.view_changed_form (object) The jQuery object for the View form after being updated
	* data.view_changed_form_additional_forms_only (object) The jQuery object containing additional forms from other instances of the same View inserted using the [wpv-form-view] shortcode
	* data.view_changed_form_additional_forms_full (object) The jQuery object containing additional forms from other instances of the same View inserted using the [wpv-view] shortcode
	*/
  
  jQuery('select[name="wpv-camper-type"] option[value="0"]').val('');
  jQuery('select[name="wpv-program-type"] option[value="0"]').val('');
  jQuery('select[name="wpv-location"] option[value="0"]').val('');

  jQuery('select[name="wpv-camper-age"] option[value="0"]').val('');
  jQuery('select[name="wpv-eligibility"] option[value="0"]').val('');
  jQuery('select[name="wpvprogramdate"] option[value="0"]').val('');
	
});

jQuery( document ).on( 'js_event_wpv_pagination_completed', function( event, data ) {
	/**
	* data.view_unique_id (string) The View unique ID hash
	* data.effect (string) The View AJAX pagination effect
	* data.speed (integer) The View AJAX pagination speed in miliseconds
	* data.layout (object) The jQuery object for the View layout wrapper
	*/
  
   jQuery('select[name="wpv-camper-type"] option[value="0"]').val('');
  jQuery('select[name="wpv-program-type"] option[value="0"]').val('');
  jQuery('select[name="wpv-location"] option[value="0"]').val('');

  jQuery('select[name="wpv-camper-age"] option[value="0"]').val('');
  jQuery('select[name="wpv-eligibility"] option[value="0"]').val('');
  jQuery('select[name="wpvprogramdate"] option[value="0"]').val('');
	
});

And you will have to use the Pagination option "Pagination enabled with manual transition and page reload" as AJAX pagination is not supported. Please check the following errata:
- https://toolset.com/errata/posts-designed-using-divi-builder-will-not-display-in-an-a-view-that-uses-ajax-pagination/