Add grouping function for Entity Reference Select list

Created on 16 August 2017, almost 8 years ago
Updated 29 June 2025, 28 days ago

It would be cool to group options in Entity Reference Select lists by for example type or bundle. It's already possible to sort them by title, id and so on, but grouping is not possible.

The structure could be build with optgroups:

<select>
  <optgroup label="Entity Bundle 1">
    <option value="content1">content1</option>
    <option value="content2">content2</option>
  </optgroup>
  <optgroup label="Entity Bundle 2">
    <option value="content1">Content1</option>
    <option value="content2">Content2</option>
  </optgroup>
</select>
✨ Feature request
Status

Active

Version

11.0 πŸ”₯

Component

entity system

Created by

πŸ‡©πŸ‡ͺGermany eric heydrich

Live updates comments and jobs are added and updated live.
Sign in to follow issues

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