Repository navigation
Replies: 3 comments 1 reply
|
Have you seen PR #968 - looked to add visibility to fieldkit. |
|
Thanks @rob-j-oliver — that PR is against the community So the gap this discussion describes is still open in the official packages, and it is the single most-missed ACF/JetEngine feature when a client edits their own content: a collection with 15 fields where 6 apply to the current entry is the difference between an admin the client uses unsupervised and one that needs a manual. Question for the maintainers: is |
|
Hi @marks-zyz, I wrote field-kit and that One thing to add to the grammar question: the Forms plugin already ships conditional fields, with On the two parts:
@ascorbic, would you take (1) as a PR to field-kit, and is (2) something you'd consider for core? And should the condition follow Forms' |
Uh oh!
There was an error while loading. Please reload this page.
Migrating from WordPress + ACF/JetEngine, where conditional field logic is bread and butter: show
video_urlonly whenformat=video; showevent_endonly whenis_multi_dayis checked. Content editors rely on it — a schema with 15 fields where only 6 apply to the current entry is the difference between an admin a client can use unsupervised and one that needs a manual.Today every field in a collection always renders in the content editor. I searched issues and discussions for conditional visibility and found nothing (closest neighbours: #2379 field help text, #2380 repeater collapse behaviour — both about editor ergonomics, neither about conditions).
Smallest shape I can think of: an optional condition on the field definition, e.g.
{ "slug": "video_url", "type": "url", "visibleWhen": { "field": "format", "equals": "video" } }equals/inonly; no expression language, no cross-collection references, no nested boolean logic. If those are ever wanted they belong to a bigger design.Open questions where I'd follow your preference: should
visibleWhenlive in the field's options JSON (no schema change at all) or as a first-class column; and whether the MCP schema tools should surface it so agents building schemas can set it.Is this shape acceptable? Happy to do the work — schema, editor, tests — if a maintainer thinks it's worth having.
All reactions