All Low add-ons are now owned by EEHarbor. Read the blog post.

Support archive

Search/submit form automatically on checkbox click

Garabedium 1 Oct 2013 17:00 question, complete

Low Search newbie here. I have a basic category search going on a landing page, and everything works beautifully. I'm able to search a channel by multiple categories using checkboxes.

Is there any way to have the form automatically search when clicking on a checkbox (so you wouldn't have to click the actual search button)? Would I use :filters instead of :form?

Code -
http://pastebin.com/HimUK8aD

Replies

  1. Low 2 Oct 2013 07:28

    Well, you could always use JavaScript to submit the form when a checkbox is clicked/changed. Something like this:

    $(function(){ 
    $('#sidebar-category-search :checkbox').change(function(){
    $('#sidebar-category-search').submit();
    });
    });

  2. Garabedium 2 Oct 2013 16:39

    Works perfectly. Thanks!