Multi search form, one result pages base on conditional
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
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
to form 1 and this:in form 2, and you'll be able to differentiate between the two forms with {low_search_foo}.