Skip Navigation

[Resuelto] Never display «no results» with checkbox filters

Este hilo está resuelto. Aquí tiene una descripción del problema y la solución.

Problem: I would like to create a View that does not allow Users to select filters that will return no results. If I add a checkboxes field to my filters and select "Only show available inputs" in advanced search settings, checkboxes are not updated like other input types. Users are able to select checkboxes that return "No results found"

Solution: Our developers have released a patch for this known issue, and will implement the permanent fix in a future release.

Relevant Documentation: https://toolset.com/errata/checkboxes-are-not-working-like-multi-select-when-only-show-available-inputs-is-selected-in-the-advanced-search-settings/

This support ticket is created hace 7 años, 2 meses. 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.

Hoy no hay técnicos de soporte disponibles en el foro Juego de herramientas. Siéntase libre de enviar sus tiques y les daremos trámite tan pronto como estemos disponibles en línea. Gracias por su comprensión.

Sun Mon Tue Wed Thu Fri Sat
8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 - -
13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 - -

Supporter timezone: America/New_York (GMT-04:00)

Este tema contiene 17 respuestas, tiene 2 mensajes.

Última actualización por Ido Angel hace 7 años, 1 mes.

Asistido por: Christian Cox.

Autor
Mensajes
#575880

it's the recipes view (first one)
and it's here:

enlace oculto

cheers!

#575895
Screen Shot 2017-10-03 at 6.57.00 PM.png

This special style appears to be added by your theme using the jQuery Uniform plugin. The extra formatting is applied when the page first loads, but then when the form updates the filters are regenerated. The special style does not get reapplied at that point. You can trigger a refresh of the filter styles with some JavaScript. Edit your View, and in the "Filter Editor" section toggle the JS editor panel open. Add the following code:

jQuery( document ).on( 'js_event_wpv_parametric_search_form_updated', function( event, data ) {
	jQuery('.js-wpv-filter-form[data-viewid=1531] input[type=checkbox]').uniform();
});

Screenshot attached. You'll have to add this code to any AJAX-enabled Views with search form checkboxes. Replace '1531' with the View's numeric ID. If you have other AJAX form input styling issues, please open a separate ticket so we can investigate the best approach for updating all the filters at the same time.

#575901

works, thx! your the best.