Add a Read Only option for Form Fields

Created on 22 May 2024, 7 months ago
Updated 12 June 2024, 6 months ago

Problem/Motivation

Some disabled form fields do not save correctly. They save as empty. Have found that Date and File field types when disabled save empty. We don't want them to save empty, we just dont want certain users to change what is there.

Steps to reproduce

We have an ECA model that disables most fields in a specific situation. If the user within that situation saves the node or another ECA model saves the node, then date and file field types end up being saved blank.

Proposed resolution

I posted in the Drupal #support channel and someone mentioned that readonly might be another option that could be used instead? Disabled form fields are often not submitted with the form sounds like?

https://drupal.slack.com/archives/C1BB308HH/p1716388206612589

Remaining tasks

User interface changes

API changes

Data model changes

✨ Feature request
Status

Active

Version

2.1

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States tyler.hastain Utah

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

Comments & Activities

Production build 0.71.5 2024