I have a field of type text that contains a number like 10. I want to create a search form with views exposed filters. Since the field is a text, I can't use greater than and less than operators on the field. Is there any way to have such operators for a text field?


You'll want to create a different field of type "number" for that.

You might be able to do something like creating using Computed Field to create a new field that takes the value of your original field and changes it to an integer with $num = (int)$str;

  • I have thousands of submitted contents, so I can't change the field type
    – Nima
    Jan 29 '13 at 18:40

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.