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.

If Form Builder is disabled, the regular Webform UI does properly store value in the wrapper CSS field.

Anyone else having this problem?

Comments

jglynn’s picture

Issue summary: View changes
rsacher1’s picture

confirm.
css seems to get written to db, as it gets rendered to output.
but it is not re-read on subsequent edit, so only an empty string is shown in designer, causing the original css-class to be overwritten on next save.

see https://www.drupal.org/node/2464419

torotil’s picture

I think I have a fix for this issue in #2464957: [META] Property values not loaded into form_builder (because of the 1:1 renderable mapping) - Please consider to help testing the patch.

mausolos’s picture

I tested and posted my results in https://www.drupal.org/node/2464957#comment-9860985. In short, it didn't appear to resolve the issue for me.

  • torotil committed ced03c0 on 7.x-1.x
    [webform] Make $element['webform_component'] the authoritative storage...
torotil’s picture

Version: 7.x-1.7 » 7.x-1.x-dev
Status: Active » Fixed

I've committed a fix to 7.x-1.x. As written in the parent issue my tests confirm that the issue is indeed fixed.

Please reopen this issue if you find a non-working test-case in 7.x-1.x.

Status: Fixed » Closed (fixed)

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