Custom form wrapper CSS class not applied

Created on 16 January 2024, 5 months ago
Updated 5 April 2024, 3 months ago

Problem/Motivation

When you add a custom CSS class to a webform via the UI, it does not get inserted into the HTML.

Steps to reproduce

1. Create a new webform with basic fields an save
2. Go to the 'Settings' tab and then 'Form' tab under it.
3. Scroll down to the field 'Form CSS classes' and choose 'custom' and then enter any CSS class.
4. Save and then visit the webform page/block, and inspect the
element - the custom class is not there.

Without this working, for all the copious amounts of css webforms create, there is actually no unique identifier for a webform used across multiple pages. The main ID for the form, e.g. 'webform-submission-quote-form' has the 'node' for the page it is on added when used on multiple pages, and the parent block holding the form doesn't have the webform ID in it by default,

So there is no way to create CSS rules for a single webform used across multiple pages out of the box, which is another issue on its own I guess?

๐Ÿ› Bug report
Status

Closed: works as designed

Version

6.2

Component

Code

Created by

๐Ÿ‡ฆ๐Ÿ‡บAustralia Ryanm81

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.69.0 2024