Problem/Motivation

Autocompletion is not validating meaning that empty fields can be saved unless users use the autocomplete

Steps to reproduce

Setup an entity reference field to use an autocomplete view as the selection widget and make it required.
Enter a value into the field for an add / edit form. DO NOT select an entry from the list.
Submit the form, see that it saves with an empty value even though it is a required field.

Proposed resolution

Add validation so that we can't save without an entity.

Remaining tasks

Add the validation - The generic selection handler already has this.

User interface changes

N/A

API changes

N/A

Data model changes

N/A

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

JamesDevware created an issue. See original summary.

jamesdevware’s picture

Status: Active » Needs review