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

Support archive

Why is submit not taking me to results page and search log empty?

Jonathan Vance 15 Sep 2014 21:23 question, complete

I am trying to implement Categories search per the example on LowSearch site, but when I click the submit button, the page simply refreshes; it does not go to the search_results page and nothing appears in the search logs. Below is a link to the code, can you see what I am doing wrong? Thanks!

http://pastie.org/private/igita9dylyh...

Replies

  1. Low 15 Sep 2014 21:32

    Does the "search_results" template group exist? And does the index template of that group contain the Results tag?

    If you View Source the form page, what does the <form>-tag look like?

    Also, you're targeting the same category group twice -- once using two single drop downs, once using checkbox groups. That comes directly from the example; something to demonstrate the two options you can use. I suggest you choose one of those which should suit your needs best.

  2. Jonathan Vance 15 Sep 2014 22:29

    Thanks for the quick reply!

    Yes, "search_results" template group exists, and the index template of that group contains the Results tag like so: http://pastie.org/private/lkohblabk8a... .

    The form tag looks like so: http://pastie.org/private/8az2gdjivgk... .

    I removed the checkbox groups from my code, and the new snippet is here: http://pastie.org/private/agqqkdlwu3i... , but I'm still not seeing the search_results page and the search log is still empty.

    What else should I look at? Any other ideas about what I might be doing wrong?

  3. Low 16 Sep 2014 06:55

    I'll need to take a look myself. Please send SuperAdmin login credentials to hi at gotolow dot com if you can.

  4. Jonathan Vance 16 Sep 2014 13:29

    ok will do, thanks

  5. Low 16 Sep 2014 13:38

    Ah, should've seen this from the start. You have required="keywords" in the form, but no keywords field in the form. When a required field is not given, the form will redirect from where you came, so it looks like it just refreshes the page.

    Remove the required="" param from the form, and all should be well.

  6. Jonathan Vance 16 Sep 2014 13:42

    That fixed it, thanks!