Changing the text displayed in an Entity Reference Autocomplete

Hi,

I have an entity reference autocomplete which is populated using an Entity Reference View.

I would like users to be able to type in this autocomplete and for the suggestions to look like this:

“[title of node] [value of custom field]”

However, it seems like there is no way to achieve this. If I add extra fields into the Entity Reference View, these do not display. If I override the output of the title field in the view, this is ignored. It seems like the Entity Reference Autocomplete simply uses the entity title and ignores the ‘Fields’ section of the view.

Does anyone have any experience with this?

Drupal version: 


Source: https://www.drupal.org/taxonomy/term/22/feed