I created two entities using eck module, entities A and B.

Entity A has text field and I want it to be searchable and displayed in entity reference autocomplete.

I created entity reference view for entity A, and I set my custom field to be searchable. In view preview, content is normally displayed.

Entity B has entity reference field, where I target entity A.

I edited reference field by setting:

Reference Type -> Reference Method: Views: Filter by an entity reference view

And View used to select the entities: ENTITY_A_reference_view - Entity reference

Now in entity B add/edit form I'm using autocomplete widget, and search works, but display doesn't.

All I'm getting is ID.

no desc
(other widgets are empty as well)

I guess it's because it's still using only ID and Title fields for display, and I'm not using title as property so it's empty.

So how can I display custom fields instead of default?

closed as off-topic by No Sssweat, Shawn Conn, kenorb, AjitS, Krishna Mohan Jun 1 '16 at 5:47

  • This question does not appear to be about Drupal within the scope defined in the help center.
If this question can be reworded to fit the rules in the help center, please edit the question.

Browse other questions tagged or ask your own question.