Similarly to what happened to "title" in https://www.drupal.org/project/readonly_field_widget/issues/2935718, "created" field has its label missing when setting it as "readonly". The cause is the same as with "title": Drupal core has template overrides for this specific field which exclude the field label.

Adding a patch that adds the same solution from to "title" to "created" field.

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

albertosilva created an issue. See original summary.

albertosilva’s picture

Just to clarify it, "created" field is also named as "Authored on" in some installations.

rinku jacob 13’s picture

StatusFileSize
new47.21 KB
new52.98 KB

Hi @albertosilva , Applied the patch for drupal version 10.1.0-dev.After the patch i could able to see label on Authored on field. Adding screenshots for the reference.
Note: I didn't see any changes on title field.

astonvictor made their first commit to this issue’s fork.

astonvictor’s picture

Version: 8.x-1.x-dev » 2.1.x-dev

astonvictor’s picture

Status: Needs review » Fixed

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.