form elements of type 'hidden' or 'value' cause an empty TD in a 'table' element

Created on 23 April 2025, about 19 hours ago

Problem/Motivation

If a form element has '#type' => 'table', then its child elements become the table rows, and its grandchild elements become the table cells.

If an element is of type hidden or value like this:

      $element[ROW][CELL] = [
        '#type' => 'value',
        '#value' => 42,
      ];

then it is not shown to the user.

However, in both cases, an empty cell is created.

Steps to reproduce

Proposed resolution

Remaining tasks

User interface changes

Introduced terminology

API changes

Data model changes

Release notes snippet

🐛 Bug report
Status

Active

Version

11.0 🔥

Component

render system

Created by

🇬🇧United Kingdom joachim

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

Comments & Activities

Production build 0.71.5 2024