Supporting entity form displays

Created on 18 August 2024, 6 months ago
Updated 21 August 2024, 6 months ago

Overview

As a site builder, I want to arrange and customize form fields the same way I can manage the rest of the frontend.

Example: I want to add the title and body field of my basic page content type in the same way I'm adding my other frontend components to the page. Then I want to be able to group the fields together, basically what I can do with the Field Group Module .

Are forms in general considered with the Experience Builder? Just wanted to ask as I haven't found it in the list of requirements listed at https://docs.google.com/spreadsheets/d/1OpETAzprh6DWjpTsZG55LWgldWV_D8jN....

If not, this issue may be used as a reference to clarify that it's not part of this initiative.
However, forms are a usual thing of what a site builder takes care of, and I'm just wondering whether this it's a crucial part for a consistent site builder experience.

Proposed resolution

Not yet, maybe needs a decision first.

User interface changes

Feature request
Status

Active

Component

Page builder

Created by

🇩🇪Germany mxh Offenburg

Live updates comments and jobs are added and updated live.
  • Needs product manager review

    It is used to alert the product manager core committer(s) that an issue represents a significant new feature, UI change, or change to the "user experience" of Drupal, and their signoff is needed. If an issue significantly affects the usability of Drupal, use Needs usability review instead (see the governance policy draft for more information).

Sign in to follow issues

Comments & Activities

  • Issue created by @mxh
  • Status changed to Postponed: needs info 6 months ago
  • 🇧🇪Belgium wim leers Ghent 🇧🇪🇪🇺

    Thanks for creating this issue!

    Do you mean entity form displays (for e.g. article nodes), or do you mean the fields + field widgets used to populate the props of an SDC?

  • 🇩🇪Germany mxh Offenburg

    The idea is to manage it on the level of fields (with their available widgets). Similar like you can use Layout Builder instead of the Manage Display configuration page, i.e. the configuration page of Manage Form Display would be replaced by Experience Builder for arranging the fields and configuring their widgets.

    I mentioned the example of the Field Group module. The site builder may instead create such field groups within the Experience Builder, and placing configured field widgets into such a group.

    Such thing immediately brings up the question of "why re-inventing the wheel" but I think it's a necessary thought when we want a more consistent UX for the site builder.

  • Assigned to lauriii
  • Status changed to Active 6 months ago
  • 🇧🇪Belgium wim leers Ghent 🇧🇪🇪🇺

    @lauriii's vision for Experience Builder so far has been that all that should be necessary, is defining an SDC and the shapes of the props it has.

    IOW: no need to configure field widgets. In fact, that's what we had originally in Allow specifying default props values when opting an SDC in for XB Fixed , and which @lauriii very explicitly asked us to move away from, which we've been doing in 📌 Support complex SDC prop shapes: introduce (Storable)PropShape to compute field type storage settings Fixed and is continuing in subsequent issues 📌 Auto-create/update Component config entities for all discovered SDCs that meet XB's minimum criteria Fixed and 📌 [PP-2] Remove Component config entity's add/edit form Postponed .

    I do see where you're coming from though: What if the form UX is not good enough? — that's fair! XB is currently literally generating forms using existing field widgets for the SDC props in the order that the SDC lists those props. So I suspect this will be a future problem/question we'll need to address.

    Requesting feedback from @lauriii to ensure I didn't misrepresent what he's told me.

    P.S.: Acquia's Site Studio product has something like this in the "Form Builder" part of Site Studio.

  • 🇫🇮Finland lauriii Finland

    If I'm reading this correctly, @mxh is asking about the entity form displays for the host entity itself. If this is true, this is not related to how the forms for individual components get generated. What I believe is that the form display of a component should be managed by the author of that component. This means that if the component is authored in code, the form display is managed in code. If the component is authored via UI, then the form display too is managed via UI.

    I believe that XB will continue to have a concept of being able to customize the form displayed for the host entity fields. We haven't designed this experience fully so I don't have any visuals to show how this would work. I will post screenshots here when this has been designed and/or when we know how XB impacts the host entities form display.

Production build 0.71.5 2024