Be able to inject easily CSS classes on Form fields, labels, columns and rows | Community
Skip to main content
Grégoire_Miche2
Level 10
Jan 28, 2018 1:39 PM UTC
New

Be able to inject easily CSS classes on Form fields, labels, columns and rows

On the the main difficulties with styling forms is that it is quite difficult to distinguish form elements apply various styling to them.

@Sanford Whiteman​ has provided some very powerful solution using tags but the limit of it is that your CSS needs to know in advance the fields that are used in the form and their layout.

The whole form styling would be much easier if, on any field in the form designer, we could add class to the input field itself, to it' label, to the form column and the form row :

These class would automatically be injected into the form html.

This is a functionality that many CMS offer, and I simply got inspired by these

-Greg

7 replies

flashflood7
Level 1
Jun 18, 2021 7:03 PM UTC

Has this ever been solved?? I'm baffled that Marketo has not implemented something like this yet, and if they have I missed it 🤷‍♂

Translate
New Participant
Feb 4, 2020 4:18 PM UTC
No text available
Translate
Level 3
Mar 27, 2018 3:37 AM UTC

This is sorely needed. The default form markup is a complete mess and bloated.

Translate
Grégoire_Miche2
Level 10
Mar 27, 2018 5:52 AM UTC

HI Andrew,

workaround here: Better styling of forms : yet another framework

-Greg

Translate
Grégoire_Miche2
Level 10
Jan 30, 2018 9:43 AM UTC

Better yet, the list of classes that could be made available should be set in the admin, by admins, and end users would only have to pick them in multi-valued picklists.

-Greg

Translate
Level 4
Feb 1, 2018 2:31 PM UTC

Would this assume that operational marketers know what CSS classes within the schema mean? I'm wondering if that might be too much to ask. Or would it be a matter of selecting one and testing in their browser?

Translate
Grégoire_Miche2
Level 10
Feb 1, 2018 2:37 PM UTC

My comment is that the list of usable classes would be set by admins and users would select the classes and test in the browser, indeed.

-Greg

Translate