I have a view which is filterable by parametric search when there are no items the No Items Found message is displayed but there is no way to reset the list.
Note - i have added the reset button which allows the list to reset after being filtered if there are items found.
Nigel
Supporter
Languages:
English (English )
Spanish (Español )
Timezone:
Europe/London (GMT+00:00)
I'm not sure I follow.
The filters (including submit and reset buttons) are inserted separately from the results.
If you apply filters and the results update to show no results found, the filters are still visible (example in screenshot), and you can use the reset button.
Have you added a reset button somewhere other than the Search and Pagination section?
Hi Nigel
I think the results and filters are separate
Here is the code in my Search and Pagination section
<div class="allSites-filter filter-wrap hide-mob">[wpv-filter-start hide="false"]
[wpv-filter-controls]
<div class="row">
<div class="col-sm-12 form-group">
<div class="form-group FilterofSet"> Filter by: </div>
[wpv-control taxonomy="region-category" type="select" default_label="Region" url_param="wpv-region-category"] -
[wpv-control taxonomy="technology-category" type="select" default_label="Technology" url_param="wpv-technology-category"] -
[wpv-control taxonomy="market-category" type="select" default_label="Market" url_param="wpv-market-category"]
<button type="submit" class="wpv-reset-trigger js-wpv-reset-trigger btn ResetofSet">Reset Filter<i class="fa fa-refresh" aria-hidden="true" style="padding-left: 12px;"></button>
[wpv-filter-spinner spinner="hidden link "][/wpv-filter-spinner] </div>
[/wpv-filter-controls]
[wpv-filter-end] </div>
</div>
Here is my code in the loop editor
[wpv-layout-start]
[wpv-items-found]
<div class="hide-mob location-map">
[wpv-map-render map_id="map-1" map_height="375" spiderfy="on"][/wpv-map-render]
</div>
<!-- wpv-loop-start -->
[wpv-filter-meta-html]
<table width="100%">
<tbody class="wpv-loop js-wpv-loop">
<wpv-loop>
<!--Map Marker-->
[wpv-map-marker map_id='map-1' marker_id='marker-[wpv-post-id]' marker_title='Hover' marker_field='wpcf-address-field']
<p style="font-size:16px;">[wpv-post-link] <i class="fa fa-angle-right" style="color:#2a7ac4;" aria-hidden="true"></p>
<i class="fa fa-phone-square" aria-hidden="true"> [types field='phone'][/types]<br />
<i class="fa fa-envelope" aria-hidden="true"> [types field='email'][/types]
[/wpv-map-marker]
<!--End Map Marker-->
<tr>
[wpv-post-body view_template="loop-item-in-sites-with-map"]
</tr>
</wpv-loop>
</tbody>
</table>
<!-- wpv-loop-end -->
[/wpv-items-found]
[wpv-no-items-found]
[wpml-string context="wpv-views"]No items found[/wpml-string]
[/wpv-no-items-found]
[wpv-pagination][wpv-pager-nav-links ul_class="pagination"][/wpv-pagination]
[wpv-layout-end]
Thanks!
Nigel
Supporter
Languages:
English (English )
Spanish (Español )
Timezone:
Europe/London (GMT+00:00)
It looks like you made a DIY reset button.
If you insert a reset button into the Search and Pagination section it will insert a wpv-filter-reset shortcode to generate the button.
Can you add that and try again and see if the Toolset reset button works?
My issue is resolved now. Thank you!