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?

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

ed.hollinghurst’s picture

Category: feature » support

Is 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.

jglynn’s picture

Issue summary: View changes

This would definitely be useful, it'd be nice to give additional layout classes

markus_petrux’s picture

Title: Add ability for CSS classes on Webform components to be customised » Add ability for Wrapper and CSS classes on Webform components to be customised
Version: 7.x-1.4 » 7.x-1.x-dev
Category: Support request » Feature request
Status: Active » Needs review
FileSize
994 bytes

Patch attached!

torotil’s picture

Status: Needs review » Fixed

@markus_petrux: Thanks for providing the patch.

  • torotil committed 6bf2723 on 7.x-1.x authored by markus_petrux
    Issue #2108065 by markus_petrux: Add ability for Wrapper and CSS classes...

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.

jglynn’s picture

When 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?