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

Support archive

Multi search form, one result pages base on conditional

ngoncom 8 Oct 2015 16:45 question, complete

Hi Low,

I have multi search form put on multi page but the result pages are same.

I dont want create multi result pages, so I want something like:

Page 1:

{exp:low_search:form result_page="search" id="form_1" ...} 
...
{/exp:low_search:form}

Page 2:
{exp:low_search:form result_page="search" id="form_2" ...} 
...
{/exp:low_search:form}

Result page "search" using conditional to show result base on form id:
{if id == "form_1"} 
Results...
{/if}

{if id == "form_2"}
Results...
{/if}

Is this possible?

Thank!

Replies

  1. Low 8 Oct 2015 20:52

    Any input field you add to the form will be available as a variable in the Results tag. So you could add this

    <input type="hidden" name="foo" value="bar">
    to form 1 and this:
    <input type="hidden" name="foo" value="baz">
    in form 2, and you'll be able to differentiate between the two forms with {low_search_foo}.