range filter not working properly
I am using low search for range filer.i have a slider and i use text box to get the value of the slider using js and perform the search.
the search is done but the filter is not working properly.
i want to get the entries having the weight (eg 0 &100). but it is showing entries having weight more than 100 at times. i dont what i am doing wrong .please help me.
input type="number" placeholder="From" name="range-from:cf_product_weight" class="range1 "
input type="number" placeholder="To" name="range-to:cf_product_weight" class="range2 "
my slider
input id="size1" type="number" data-slider-min="0" data-slider-max="250" data-slider-value="[0,250]" data-slider-step="1" data-slider-tooltip="show"
please help me with this.
thanks in advance
Replies
Low 23 Jul 2014 13:15
What is the type and properties of the field "cf_product_weight"?
It should be a Text Input, and the "Field Content" setting should be set to something other than "All", so it accepts only true numbers.
Merlin Jacob 23 Jul 2014 13:32
yep.. i changed to number and its working great now..
thank you so mch...you are awesome :)
Merlin Jacob 23 Jul 2014 13:35
can i use grid field for range search
Low 23 Jul 2014 13:36
I'm afraid not. Only numeric fields.
Merlin Jacob 23 Jul 2014 13:39
its ok..thanks for your immediate response...