You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Only one field is visible when fieldsets contain different fields with same handle #11696
I was trying to set up a proof of concept for more complex fieldsets/components in Statamic, when I stumbled upon this.
To reduce redundancy I created fieldsets of common key/value pairs. In this case email+link label and phone number + link label.
But when I tried to use the fieldsets, there was only one of the labels visible instead of both.
I found the issue rather quickly (changing the handle of one of them), but this is not intuitive in every scenario and every user.
How to reproduce
Create a fieldset and call it "Email Link"
Add a text field called "label" and a second one called "address"
Save the settings
Create a fieldset and call it "Phone Link"
Add a text field called "label" and a second one called "number"
Add the fieldsets to a blueprint
Create a new page using the blueprint
Scroll to the point where the fieldsets should render all fields
Check if every field of the fieldset is visible
Environment
EnvironmentApplication Name: StatamicLaravel Version: 12.8.1PHP Version: 8.4.6Composer Version: 2.8.6Environment: localDebug Mode: ENABLEDURL: demo-demo.testMaintenance Mode: OFFTimezone: UTCLocale: enCacheConfig: NOT CACHEDEvents: NOT CACHEDRoutes: NOT CACHEDViews: CACHEDDriversBroadcasting: logCache: fileDatabase: sqliteLogs: stack / singleMail: logQueue: syncSession: fileStoragepublic/storage: NOT LINKEDStatamicAddons: 0Sites: 3 (Default, demo-1, demo-2)Stache Watcher: Enabled (auto)Static Caching: DisabledVersion: 5.53.0 PRO
Installation
Fresh statamic/statamic site via CLI
Additional details
Adding a prefix resolves the issue, but there is no indication in the UI that leads me to this solution.
It would be helpful either to be warned about this behavior, as soon as I create a field with an already existing handle or to receive a visual cue in the page editor, that explains the missing field.
Activity