Required fields should stay required

Created on 4 September 2024, 4 months ago

Problem/Motivation

If a field is required, setting it to use the Read Only form widget should not un-require it.

Steps to reproduce

Configure a field to be required in the field settings, no default value. Go to form display and set that field to use the Read only widget. Create content with no value passed in (so no entity reference prepopulate for example). It will save without validation error preventing this.

Proposed resolution

Probably some people are relying on the current behavior. Could it be made configurable on the widget?

Remaining tasks

User interface changes

API changes

Data model changes

πŸ› Bug report
Status

Active

Version

1.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States mlncn Minneapolis, MN, USA

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

Comments & Activities

Production build 0.71.5 2024