[2.0.0-beta5] Preselect option when only one available

Created on 25 October 2024, 2 months ago

Problem/Motivation

With "Referenced entities" and "Data from a field" sources, when there is a single option in the select form element, we need to manually select this option our self.

This looks like an unnecessary task .

Proposed resolution

Is it possible to preselect the option ? What will be the effect on the AJAX loading sources

Examples:

  • in article node, URL prop: "Referenced entity: File by Image" >> "Data from a field: URI"
  • in basic content block, URL prop: "Data from a field: URI"
  • also in basic content block, URL prop: "Referenced entity: Revision user"

Remaining tasks

Also, is it possible to simplify the wording?

From:

{bundle} ({entity_type}) referenced by {field}
User (User) referenced by Authored by
File (File) referenced by Image
User (User) referenced by Revision user
Tags (Taxonomy term) referenced by Tags

To:

{field} ({bundle})
Authored by (User)
Image (File)
Revision user (User)
Tags (Tags)

πŸ“Œ Task
Status

Active

Version

2.0

Component

User interface

Created by

πŸ‡«πŸ‡·France pdureau Paris

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

Merge Requests

Comments & Activities

Production build 0.71.5 2024