Conditionally required entity reference fields do not get * to indicate required

Created on 9 May 2024, 7 months ago
Updated 10 September 2024, 3 months ago

Problem/Motivation

I have an entity reference field that is conditionally required based on the choice in a select list. When I choose the proper trigger value, the field does not get the *. (It does still become required, though.) This behavior depends on the type of selection widget that I choose. If I have the autocomplete, it fails to get the *. If I have a select widget, it does get the *.

Steps to reproduce

Create a content type that has a select list field and an entity reference field that uses the autocomplete widget.
Create the dependency that the entity reference field is required based on a selected value in the select list field.
Create a piece of content and select the trigger value from the select list field.
Note that the entity reference field still does not have the *.

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

πŸ› Bug report
Status

Postponed: needs info

Version

4.0

Component

Javascript

Created by

πŸ‡ΊπŸ‡ΈUnited States vegantriathlete Lakewood, CO

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

Comments & Activities

Production build 0.71.5 2024