Greater than or less than on custom search form

Hi Guys.

Just want to find out how can i set an element to use greater than or less than functions on a custom search.


I have a search form with a text box that says minimum price. I want to query the list for anything greater than in this box. At the moment it only does an equal.

I think by using a prefilter I would be able to get it to work but I'm wondering if there's a better way

Any help would be appreciated.

Regards
 
Yeah, I think you'd need a prefilter for that.

The only thing I'd be worried about would be the query string and prefilter conditions conflicting. Give it a go and let me know.

-- hugh
 
Hi Hugh just letting you know that i have tried this method. However theres a small issue with it that I need to set the prefilter to AND otherwise it will not filter the list.
 
Yup, sorry, I assumed you'd use AND, otherwise it won't have much effect.

Thinking about it, you won't get a conflict with the query string filter, as we do have code to ensure that a prefilter on an element will override (replace) a query string filter for the same element.

-- hugh
 
We are in need of some funding.
More details.

Thank you.

Members online

Back
Top