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

Support archive

Low Search, when using the conditional to say which category item is selected, says "Undefined"

john 30 Nov 2012 12:36 problem, rejected

In Low Search, i'm using the code from here http://gotolow.com/addons/low-search/... to do category searching from two dropdowns (a jump menu if you will, using js to submit the form on click) The search works, but what doesn't work is the making of the menu items "selected" instead, the dropdown says "Undefined" no matter what i do.

Low Search tag

{exp:low_search:form form_class="custom" collection="example" require_all="category" result_page="example/search"}

Category tag:

{exp:channel:categories channel="example" category_group="1" style="linear"}
{category_name}
{/exp:channel:categories}

Any ideas?

Replies

  1. Low 30 Nov 2012 12:40

    "Undefined" seems to point at a JavaScript problem. Are you changing the DOM somehow? If so, you probably need to debug that.

  2. john 30 Nov 2012 12:50

    Yes and no, that is JS yes, but i've turned it off, reloaded the search url which has the category "EGYPT" selected in it, and it is not making that option "selected" as expected. I think not having anything "selected" is what is causing that js error.

  3. john 30 Nov 2012 12:52

    If, i do a search with this category list, i'm guessing in the cpanel area, it should show that selected as the keyword? Is that right?

    If so, it's missing it and is not picking up the category i've selected as a search term.

  4. Low 30 Nov 2012 12:52

    Have you added the query="" param to the Form tag?

  5. john 30 Nov 2012 12:53

    Oh bugger.

  6. john 30 Nov 2012 12:55

    Hey look at that! It works!...*goes and hides behind chair trying not to meet lows cold steely gaze of disappointment*

  7. Low 30 Nov 2012 12:55



    ;)

  8. john 30 Nov 2012 12:56

    Thanks Low! And Sorry! :-)