I am trying to get a views entity reference for autocomplete entry of a user entity reference that has a name field
In views entity reference:
- The name field is added
- In format/settings the name field is enabled for searching
- In show/settings it is also enabled

Unfortunately, I am unable to make it search the full name.
I can add other fields and make them searchable but not the individual subfields of the name field..
Am I doing something wrong?

Comments

smhar created an issue. See original summary.

bluegeek9’s picture

Status: Active » Fixed

Add Subfields as Separate Fields
In your View, instead of adding the Name field as a single rendered field, try adding it multiple times, once per subcolumn:

When adding the field, look for variants like "Name (Given)", "Name (Family)", etc., if the Name module exposes them as separate field options. Enable each of those individual column fields for searching in the Entity Reference display settings.

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.

bluegeek9’s picture

//www.flaticon.com/free-icons/thank-you Thank you for your contribution! Your continued support makes this project sustainable.
There are multiple ways to show appreciation for the work contributed to this project including:

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.