0

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?

1 Answer 1

0

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;

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

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

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