Early Bird Registration for DrupalCon Portland 2024 is open! Register by 23:59 PST on 31 March 2024, to get $100 off your ticket.
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>
Comments