Autocreate for Entity Reference selection handlers that extend ViewsSelection

Created on 15 September 2016, about 8 years ago
Updated 12 July 2024, 4 months ago

Problem/Motivation

Autocreate a is a great UX option for Entity Reference fields. Currently it is not available if you choose "Views" as the "Reference method", which is necessary if you want to filter the available choices.

Proposed resolution

Create an auto create EntityReferenceSelection plugin which extends ViewsSelection.

Remaining tasks

See #96
See #98
Review

User interface changes

Entity reference field type will have one more reference method Views: Filter by an entity reference view and allow autocreation.
When this option is selected and Create referenced entities if they don't already exist is checked, new referenced entities with title will be created. If more then one bundle exists for referenced entity, then a Store new items in select option will be shown to choose the bundle.

API changes

None.

Data model changes

None.

Feature request
Status

Needs work

Version

11.0 🔥

Component
Views 

Last updated about 4 hours ago

Created by

🇬🇧United Kingdom jonathanshaw Stroud, UK

Live updates comments and jobs are added and updated live.
  • Usability

    Makes Drupal easier to use. Preferred over UX, D7UX, etc.

  • Needs tests

    The change is currently missing an automated test that fails when run with the original code, and succeeds when the bug has been fixed.

Sign in to follow issues

Merge Requests

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024