Getting Search Range Low and High variable
Hello,
It is possible to get the to and from variable in the form or just the range? I would like to show what was searched for in the form.
Something like:
{low_search_range_from:property_price}
{low_search_range_to:property_price}
Thanks!
Replies
Low 17 Sep 2012 06:49
Hi Brad,
Yeah, that's possible. Just take the input field's name and prepend it with low_search_, so:
{low_search_range-from:property_price}
{low_search_range-to:property_price}
Brad Parscale 17 Sep 2012 13:11
Hello,
Getting empty variables.
Here is the field going in:
- input type="hidden" name="range-from:property_price" id="property_price_from" value="10000000" / -
Then I show it on the results page with:
- span id="low_amount">{low_search_range-from:property_price}</span -
I get empty results, however the search does work.
Brad
Low 17 Sep 2012 13:15
Where are you putting the {low_search_range-from:property_price} variable? Inside the Form tag or inside the Results tag? Only the Form tag is supported, at the moment.
Brad Parscale 17 Sep 2012 13:19
Inside the form tag. Just comes out blank.
Also, I have noticed if you take the range-to up to 100000000 it fails, but does work up to 99M.
Brad
Low 17 Sep 2012 13:25
Hmm, can't seem to replicate. Is this online somewhere so I can take a look? You can send login credentials to hi at gotolow dot com.
Brad Parscale 17 Sep 2012 13:55
I was missing the query="{segment_3}". Thanks low.