I have a view for which I've set different exposed filters and users can search for objects of different criteria. However, I want some fields to be searched by "Less than/Greater than or equal to" what the user types. I don't have those options in the operator field. Some people seem to have them however.

  • I figured it out. My field was set to text so then obviously I couldn't do GT/LT. I switched the field to a CCK one (Integer) and it worked. – Sorin Cioban Aug 16 '11 at 9:42
  • Answering your own question is encouraged: if you leave that as an answer and accept it, others will be able to vote on it and use it as a future resource. – user7 Aug 16 '11 at 10:30

The operators you get in a Views exposed form depends on the type of data that is stored. If you store a text string you can't use GT or LT, instead you can use starts with or ends with.

Most likely your problem is that you are storing numbers as text in the database instead of storing them as numbers.

  • Thanks for the answer, I have list (integer) how can i get GT/LT in the few ? – Yama Nov 9 '14 at 12:17

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.