1

I have created the content type named candidate_profile, included fields like Current_Salary_Range.

I have created a view and also I am using better exposed filter for current_salary_range field.

My question is: When the user selects the filter criteria current_salary_range of 20000, I want to show the results who is having current_salary_range 20000 and also who is having current salary range below 20000.

how to proceed with this...?

0
1

In your Content type Manage Fields, what you need to do is make the Current_Salary_Range FIELD TYPE be a (number) Integer field and not a text field.

Note: You will have to delete and create a new field, as you cannot change field type after the field has been created

Then when you add it as a filter in your view, you should get the option of less than or equal to

enter image description here

Note: picture is from Drupal 8, but should be the same in Drupal 7.

2
  • i want to display both results who is having current_salary_range 20000 and below 20000. – Babu A Apr 23 '16 at 11:47
  • Thanks Bro. i am filter the result based on the salary range . i will check the no of results. if result is lesser-than 20 i will display salary range below given range(below 20000). and then i will check this result. if is it lesser-than 30. i will display results salary range greater-than 20000. – Babu A Apr 23 '16 at 11:58

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.