Epic #69347: EXT:form - Optimize form wizard
Add placeholder to form wizard
If you need a compact formular one possible way would be to not use a label but the placeholder attribute.
Adding a checkbox to 'Options->Label Properties' to remove the label tag and render the value as placeholder attribute value would be great.
[FEATURE] Add placeholder attribute to some textfields in wizard
The form wizard is now able to add a placeholder attribute to the
following elements: TEXTLINE, TEXTAREA, PASSWORD and the preset
"email". TypoScript config is properly read and written.
Reviewed-by: Anja Leichsenring <firstname.lastname@example.org>
Tested-by: Anja Leichsenring <email@example.com>
Reviewed-by: Jan Helke <firstname.lastname@example.org>
Tested-by: Jan Helke <email@example.com>
Reviewed-by: Christian Kuhn <firstname.lastname@example.org>
Tested-by: Christian Kuhn <email@example.com>
#2 Updated by Riccardo De Contardi over 4 years ago
If the concern is accessibility, you should not use the "placeholder" attribute, but the "title" attribute, see the WCAG2 documentation, "H65: Using the title attribute to identify form controls when the label element cannot be used":
IMHO the best thing could be having separate fields for title and placeholder, and not a checkbox
#5 Updated by Bjoern Jacob about 4 years ago
- Subject changed from Label as placeholder to Add placeholder to form wizard
I think so too. The label can be removed in different ways. You could change the layout of the form and that way remove the label completely. Furthermore the label can be hidden via CSS.
But we'll keep the ticket to add the placeholder attribute to the BE form wizard.