Allow field output to be hidden.

Created on 1 July 2023, about 1 year ago
Updated 6 July 2023, about 1 year ago

Problem/Motivation

When field values are empty, the formatters should not render markup. Additionally, site builders should have the option to set all field types as hidden whether or not they have a value or not. The use case might be a field that is specifically for settings.

Steps to reproduce

Fill field form partially and notice the markup for empty fields is still rendered.

Proposed resolution

Conditionally render fields in formatter classes depending on whether the value is empty or not. Modify the value() function where applicable to account for new "Hidden" formatter option.

Remaining tasks

Provide a patch.

User interface changes

Formatter option for "Hidden" for all field types in the field settings form.

✨ Feature request
Status

Fixed

Version

1.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States apmsooner

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

Comments & Activities

Production build 0.71.5 2024