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.
I think it would be handy if the Form Builder gave the ability to customise the CSS classes for Webform Components.
Is this something that could be considered?
Comment | File | Size | Author |
---|---|---|---|
#3 | form_builder-css_classes-2108065-3.patch | 994 bytes | markus_petrux |
Webform Display Options.PNG | 26.37 KB | ed.hollinghurst | |
Form Builder Display Options.PNG | 23.73 KB | ed.hollinghurst |
Comments
Comment #1
ed.hollinghurst CreditAttribution: ed.hollinghurst commentedIs it possible to achieve this using code?
I was hoping hook_form_builder_types_alter() would do the trick but I couldn't get it to work.
Comment #2
jglynn CreditAttribution: jglynn commentedThis would definitely be useful, it'd be nice to give additional layout classes
Comment #3
markus_petrux CreditAttribution: markus_petrux commentedPatch attached!
Comment #4
torotil CreditAttribution: torotil commented@markus_petrux: Thanks for providing the patch.
Comment #7
jglynn CreditAttribution: jglynn commentedWhen using the "wrapper CSS class" or "CSS classes" fields, anything I enter there is not saved. The field always reverts back to being blank after the form is saved.
Anyone else having this problem?