Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Display Suite Forms was removed from the 8.x version.
There's a branch ds_forms (http://cgit.drupalcode.org/ds?h=ds_forms) which works a little for now (currently selecting a layout, but needs a lot of work).
We're currently not planning to add it back ourselves because of a couple of reasons:
- forms have form modes
- fields can be hidden
Either someone can work on that branch or even create a new contrib module.
Comments
Comment #1
davidwbarratt CreditAttribution: davidwbarratt as a volunteer commentedThe only use case I can think of is if you wanted a custom layout (per form mode) of a form. For instance if you wanted a custom layout for the User Registration form vs. the User Edit form; etc. Right now form modes are exactly what Display Modes are without Display Suite.
Comment #2
aspilicious CreditAttribution: aspilicious commentedyou have form modes and you have fieldgroup, should be enough
Comment #3
davidwbarratt CreditAttribution: davidwbarratt as a volunteer commentedNo it's not.
You could say the same thing about Display Suite for "Manage Display". Is Display modes and Field Group enough?
Comment #4
davidwbarratt CreditAttribution: davidwbarratt as a volunteer commentedI'm not saying this needs to be part of Display Suite; but I think there's a need for assigning a form mode to a layout.
Comment #5
aspilicious CreditAttribution: aspilicious commentedDS also injects custom fields AND provides field templates. Things you'll never have on a form display.
So that is the difference.
The big problem is that there is no clean wat to achieve this. I don't want a buggy, half broken DS forms module. We had it in D7... It could lead to very nasty bugs.
Comment #6
Sam152 CreditAttribution: Sam152 as a volunteer and at PreviousNext commentedI would have thought given displays and forms extend from the same base entity class, there would be some synergy there to make this work.
Comment #7
aspilicious CreditAttribution: aspilicious commentedYou can use the new field layout module added in drupal core for the forms.
DS and field layout are now compatible.