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

Support archive

Getting Search Range Low and High variable

Brad Parscale 17 Sep 2012 04:08 question, complete

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

  1. 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}

  2. 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

  3. 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.

  4. 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

  5. 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.

  6. Brad Parscale 17 Sep 2012 13:55

    I was missing the query="{segment_3}". Thanks low.