This is a followup to #1953568: Make the bundle settings for entity reference fields more visible..
On entity reference bundle settings, if "Create referenced entities if they don't already exist" is checked and multiple target bundles are allowed, a dropdown "Store new items in" appears. However, it appears above the bundle selection checkboxes, which is weird:

it's weird having something change *above* the element you just interacted with...
That's why the reference method has to be on top. But for the same reason the allowed target bundles have to be next, right below the reference method, only then followed by the "Create referenced entities if they don't already exist" checkbox and possibly the "Store new items in" dropdown.
Also, per agreement in UX meetings, more important, particularly required elements should generally be at the top:
Moving these options closer to the top of the page is a good idea. We should normally put required elements first.
Problem: The very pragmatic reason for the current order seems to be that the single "Create referenced entities..." checkbox doesn't have a header, so if placed below the target bundle checkboxes, it would look like just another target bundle checkbox.
I'm not sure how to solve this, but we should figure out if there's a better approach to all of this.
In the end, I'm not even sure the "Create referenced entities..." checkbox belongs here at all. Finally, it seems only relevant to autocomplete widgets, so should possibly be a widget setting.
| Comment | File | Size | Author |
|---|---|---|---|
| #3 | reorder-autocreate.png | 18.88 KB | pancho |
| #2 | reference-options-order.png | 16 KB | pancho |
Issue fork drupal-3038199
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
Comment #2
panchoComment #3
panchoHow about this?
Comment #14
smustgrave commentedThis came up as the daily BSI target.
Can confirm this is still the case. Probably just need to play with the weight value so tagging for novice.
This will 100% need a summary update.
Comment #15
antojoseThe Drupal Contribution Mentoring team is triaging issues for DrupalCon Rotterdam 2026, and we are reserving this issue for Mentored Contribution during the event.
After October 3, this issue returns to being open to all. Thanks!
Figure out where to make the change in the code, and make the merge request.
Comment #16
helga.cheberakha commentedDrupalCon Rotterdam 2026, I will be working on this issue.
Comment #18
helga.cheberakha commentedThe `auto_create_bundle` element in `DefaultSelection` had `weight: -1`. This property was removed to return the element to its usual order.
Comment #19
quietone commentedThe entity_reference module is no longer in core.