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
Field API: support registering custom field controls #74856
Some use cases require interactions that are context-specific and cannot use the controls bundled by DataForm. BlockFields are an example of this, where we need the ability to register custom controls to handle media or links.
Custom controls can already be provided to fields, as in:
However, this can't be serialized, which prevents us from using the DataForm API in places where we require a JSON format (block attributes, PHP server-side, etc.). We need to support declarative approach for those scenarios.
How
The first step is to pass a configuration prop to the existing components (DataViews, DataForm, DataViewsPicker) with the custom edit controls.
A future next step will be to open this up for registration (see).
Activity
[-]Support registering custom field controls[/-][+]Field API: support registering custom field controls[/+]youknowriad commentedon Jan 22, 2026
I'll repeat what I commented on the other PR.
I think we should avoid global functions and registries, I'd prefer a "settings" prop instead on
DataForm/DataViewsoandregal commentedon Jan 23, 2026
Updated the issue description as per this conversation.
oandregal commentedon Jan 26, 2026
I'm looking into this one.
t-hamano commentedon Aug 12, 2026
Punting this to 7.2 as the 7.1 release is scheduled for next week.