cms
cms copied to clipboard
[5.x]: Table field displays empty default values in CP entry view
What happened?
Description
When using the Table field type, default values defined for the table's columns are not automatically populated when editing an entry in the Control Panel. The fields appear empty unless data is explicitly entered.
Steps to reproduce
- Create a table field
- Add columns
- Add rows with default values for selected columns
- Save the field and add this to the entry type
- Access the entry and locate the field to see blank values
Expected behavior
When creating or editing an entry in the Control Panel, the Table field should pre-populate its rows and columns with the default values defined in its settings — so the user sees and can modify those values without needing to input them manually.
Actual behavior
Field
Entry
Expected to see the first two columns populated with the retrospective values
Craft CMS version
5.7.10
PHP version
8.3
Operating system and version
No response
Database type and version
No response
Image driver and version
No response