Make extra fields not visible by default

Created on 7 August 2024, 4 months ago
Updated 21 August 2024, 4 months ago

Problem/Motivation

Extra fields added via UI become automatically visible in all entity type form/display modes, which may be annoying if there are many form/display modes.

It may be better to hide those fields by default and let the site dev add them to displays.

Steps to reproduce

1. Create the extra field.
2. Navigate to Manage form display or Manage display tab.
3. Observe new extra field visibility.
Expected: the newly added field is hidden in all form/display modes.
Actual: the newly added field is visible everywhere.

Proposed resolution

Hide extra fields by default by setting 'visible' => FALSE, in entity_extra_field_entity_extra_field_info.

Remaining tasks

Review the approach.

User interface changes

Newly added extra fields would be hidden by default and should be added to displays manually, where needed.

API changes

None.

Data model changes

None.

✨ Feature request
Status

Fixed

Version

2.1

Component

Code

Created by

πŸ‡ΊπŸ‡¦Ukraine abramm Lutsk

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