{"id":3523,"date":"2019-01-03T03:55:05","date_gmt":"2019-01-03T03:55:05","guid":{"rendered":"https:\/\/docs.contentviewspro.com\/?p=3523"},"modified":"2023-12-26T11:18:27","modified_gmt":"2023-12-26T11:18:27","password":"","slug":"live-filter-disable-loading-results-on-changing-filter-option-only-loading-on-click-submit-button","status":"publish","type":"docs","link":"https:\/\/contentviewspro.com\/documentation\/article\/live-filter-disable-loading-results-on-changing-filter-option-only-loading-on-click-submit-button\/","title":{"rendered":"Live Filter &#8211; disable loading results on changing filter option, only loading on click &#8220;Submit&#8221; button"},"content":{"rendered":"<p>Live Filter helps you to show taxonomies, custom fields&#8230; as filter options, which allows your visitors to filter content in their way.<\/p>\n<p>By default, the results are loaded on changing a filter option (select an option from dropdown, select a checkbox, select an option&#8230;)<\/p>\n<p>To disable that behavior, and only loading results on click the &#8220;Submit&#8221; button, please add this code to <strong>Custom JS<\/strong> field (the right textarea) in <a href=\"https:\/\/contentviewspro.com\/documentation\/wp-content\/uploads\/2018\/03\/Content-Views-_-Settings.png\">Content Views >> Settings<\/a> page:<\/p>\n<pre style=\"font-size:13px\">\n\/*Live Filter - disable loading results on changing filter option*\/\nvar cvp_lf_loadonsubmit=function(){$(\"input, select\",\".cvp-live-filter\").each(function(){$(this).data(\"nosubmit\",!0)})};cvp_lf_loadonsubmit(),$(\"body\").on(\"pt-cv-pagination-finished\",function(){cvp_lf_loadonsubmit()});\n<\/pre>\n<hr>\n<p>(to show the Submit button, please check <a href=\"https:\/\/contentviewspro.com\/documentation\/article\/live-filter-add-submit-reset-button\/\" rel=\"noopener\" target=\"_blank\">this document<\/a>)<\/p>\n<p>Best regards,<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Live Filter helps you to show taxonomies, custom fields&#8230; as filter options, which allows your visitors to filter content in their way. By default, the results are loaded on changing a filter option (select an option from dropdown, select a checkbox, select an option&#8230;) To disable that behavior, and only loading results on click the &hellip;<\/p>\n<p class=\"read-more\"> <a class=\"\" href=\"https:\/\/contentviewspro.com\/documentation\/article\/live-filter-disable-loading-results-on-changing-filter-option-only-loading-on-click-submit-button\/\"> <span class=\"screen-reader-text\">Live Filter &#8211; disable loading results on changing filter option, only loading on click &#8220;Submit&#8221; button<\/span> Read More &raquo;<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"site-sidebar-layout":"default","site-content-layout":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","footnotes":""},"doc_category":[46],"doc_tag":[36],"class_list":["post-3523","docs","type-docs","status-publish","hentry","doc_category-live-filter","doc_tag-custom-js"],"year_month":"2026-09","word_count":117,"total_views":0,"reactions":{"happy":0,"normal":0,"sad":0},"author_info":{"name":"admin1","author_nicename":"admin1","author_url":"https:\/\/contentviewspro.com\/documentation\/author\/admin1\/"},"doc_category_info":[{"term_name":"Live Filter (Frontend Search &amp; Filter)","term_url":"https:\/\/contentviewspro.com\/documentation\/cats\/live-filter\/"}],"doc_tag_info":[{"term_name":"custom JS","term_url":"https:\/\/contentviewspro.com\/documentation\/tags\/custom-js\/"}],"_links":{"self":[{"href":"https:\/\/contentviewspro.com\/documentation\/wp-json\/wp\/v2\/docs\/3523","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/contentviewspro.com\/documentation\/wp-json\/wp\/v2\/docs"}],"about":[{"href":"https:\/\/contentviewspro.com\/documentation\/wp-json\/wp\/v2\/types\/docs"}],"author":[{"embeddable":true,"href":"https:\/\/contentviewspro.com\/documentation\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/contentviewspro.com\/documentation\/wp-json\/wp\/v2\/comments?post=3523"}],"version-history":[{"count":1,"href":"https:\/\/contentviewspro.com\/documentation\/wp-json\/wp\/v2\/docs\/3523\/revisions"}],"predecessor-version":[{"id":5249,"href":"https:\/\/contentviewspro.com\/documentation\/wp-json\/wp\/v2\/docs\/3523\/revisions\/5249"}],"wp:attachment":[{"href":"https:\/\/contentviewspro.com\/documentation\/wp-json\/wp\/v2\/media?parent=3523"}],"wp:term":[{"taxonomy":"doc_category","embeddable":true,"href":"https:\/\/contentviewspro.com\/documentation\/wp-json\/wp\/v2\/doc_category?post=3523"},{"taxonomy":"doc_tag","embeddable":true,"href":"https:\/\/contentviewspro.com\/documentation\/wp-json\/wp\/v2\/doc_tag?post=3523"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}