Follow up for #1801304-313: Add Entity reference field Task C

Problem/Motivation

After picking entity reference for the display type,
if you scroll down to the preview section, you will see: red error: 'Display "EntityReference" needs a selected search fields to work properly. See the settings for the Entity Reference list format.'
But solution is go up and click on the format link and to pick the only option in a required setting. Silly to make a human do that.

Proposed resolution

Have EntityReference display default to whatever the "primary field" is of the given view type

OR

Despite being scary, the message is descriptive, so click on "Settings" next to Entity Reference list. Suggest: just link right there from the error message directly

Remaining tasks

Discuss how this can be implemented

User interface changes

No UI changes.

API changes

Maybe API changes.

Original report by @webchick

#1801304-199: Add Entity reference field 7.

FEEDBACK:
In a similar way that the Views wizard defaults to having User: Name field already populated, can the EntityReference display default to whatever the "primary field" is of the given view type?

FOLLOW-UP: Had the error been at the top of the page, I could've reacted faster. Not the fault of this patch. (I don't think.)

Comments

Issue tags:+VDC

Tagging.

Component:field system» entity_reference.module

Moving to right component

Issue summary:View changes

Updated issue summary add alternate solution