2

I would like to be able to search my views by a field that is generated by an Entity Reference of users of the site.

Attempt #1 - Combine Fields Filter
I added this filter as exposed with the setting of "Contains" either from the "Title" field or the "Responsible Party" field (which is the Entity Reference field that is a list of users. Here is a picture of the settingsenter image description here
The results of this were that the title field is filterable as pictured hereenter image description here
Yet the user generated field did not properly filter as shown hereenter image description here

Attempt #2 - Search: Search Terms filter Same process and same issues using this filter. Here is a picture of the settingsenter image description here

Then the same results as shown here.
Searching Title enter image description here
Searching Users enter image description here

3
  • cool, I didn't know that you could combine fields filters. Just wondering, if you add an exposed filter of responsibly party (as a stand alone, not combined) does the filter work as expected? or do you still get blanks?
    – No Sssweat
    Dec 26, 2015 at 21:47
  • Ya the filter for responsible party works great alone.
    – KyleRiggen
    Dec 26, 2015 at 22:45
  • You could try to add a relation of the entity reference field in the advanced section. It might expose the title as a field with its base on the referenced node, which might filter better. But it might also not work... Dec 26, 2015 at 23:20

1 Answer 1

3

Looks like you did all the steps correctly, How To Create Combined Search Filters In Views?, which leads me to believe that this is a bug.

Upon looking at the View's issues, I found Combined fields filter not working with entity reference.

Therefore, you will have to use it as a standalone, not combined, filter until this bug is fixed, which does not look like it will be any time soon.

1
  • Alright. Sad times as it seems that Views has over 1600 bugs so this is probably not getting fixed. Thanks for the help though.
    – KyleRiggen
    Dec 27, 2015 at 18:01

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.