I have a view which displays a list of nodes with exposed filters. Everything works perfectly.

I would like to add a filter like this:

  • one input text
  • one drop-down.

The list items represent fields of content type.

The user can write a search term in the input text and select which 'field' to search by. i.e. All, Title, Summary, ...

Is that possible? How I can do this?

enter image description here

1 Answer 1


I have created a custom module inspired by your question. You can find it here

It is not created/approved as a full project on Drupal.org. But it will approved soon. Download the module, enable it. Under filter add a filter that says Exposed fields Filter then select the fields you want to expose to visitors. Only those field will appear to visitors which you select here.

I hope it helps you for now.

  • Thank you for your help. I tried your module but I have an error when I add the exposed fields filter in my view. i.stack.imgur.com/mh33O.png i.stack.imgur.com/WKjyl.png Do you have any idea why?
    – N.Faget
    Feb 17, 2016 at 9:05
  • I have updated the link to the code on drupal.org. It has some fixes. hope that helps
    – Shabir A.
    Feb 17, 2016 at 13:50

Your Answer

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

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