As part of https://www.drupal.org/project/webform/issues/2982127 all composite elements are wrapped in a fieldset. In my case I have a composite element as a part of another field set to group a bunch of fields, but having a fieldset inside another fieldset is a bit odd.
Would be really good to be able to enable and disable this feature.
| Comment | File | Size | Author |
|---|---|---|---|
| #8 | 3005355-8.patch | 17.34 KB | jrockowitz |
Comments
Comment #2
jrockowitz commentedYour request makes sense.
We would have to rework \Drupal\webform\Element\WebformCompositeFormElementTrait::preRenderWebformCompositeFormElement to support a #wrapper_type property which could then be the default 'fieldset' or a form 'item'.
Comment #3
dmitriim commentedThank you for such a quick response.
I'm just wondering, should it just simply respect "FORM DISPLAY -> Title display" option of a composite element?
Comment #4
dmitriim commentedAlso not sure if it's related, but it seems that "FORM DISPLAY -> Title display" is broken for a Fieldset element. For me it always displays a title even if I set the option to "invisible"
Comment #7
jrockowitz commentedThe field title display is a separate issue. Please make sure it is not a theme (ie Bootstrap) specific issue.
The below code does hide a fieldset's legend in Bartik
If you can replicate the issue via the Bartik or Seven them please create a new ticket.
Comment #8
jrockowitz commentedPlease review the attached patch and change record draft.
Comment #9
dmitriim commentedYeah the field title display issue is related to a theme. Will have a look at the patch and test it as soon as I get a chance.
Thank you again for such a quick responses!
Comment #11
jrockowitz commentedI reviewed and committed the patch. Please download the latest dev release to review.