Don't know why Low Search not work in this case!
Hi Low,
I am so sorry for this question, but I don't know why Low Search not working!
I have a search form and result page using one template (/filter)
My search form in /filter template:
{exp:low_search:form result_page="/filter"}
<select name="my_website">
<option value="website1.com">website1.com</option>
<option value="website2.com">website2.com</option>
</select>
<button type="submit">View</button>
{/exp:low_search:form}
And I list results in /filter template:
{exp:low_search:results query="{segment_1}" channel="website"}
<h1>{title}</h1>
{/exp:low_search:results}
Form search submit ok, I have this url after submit:
/filter?my_website=website2.com
But exp:low_search:results show all entries, not entries have my_website=website2.com
I need help!
Replies
Low 12 Aug 2018 12:44
my_website
isn't a valid parameter. Are you targeting a specific field? Then usesearch:my_website
instead, as per the Field Search filter.Also, you can remove the query="" param from the Results tag if you're using GET vars.
ngoncom 12 Aug 2018 20:02
You save my life!
I forget that have to using "search:my_website" not "my_website" for field search, it works.
Thank so much!