Feature #80125
closedEpic #80186: EXT:form - strong defaults and UI/ UX optimization
EXT:form - support for HTML5 input types email, tel and url
100%
Description
While currently a validator for emails exist, the presence of the validator does not change the type attribute of the input field to "email" (it stays "text"). Neither for telephone numbers nor URLs a validator exists.
The goals of this feature is to allow an editor to setup a form field that is rendered as input field of type "email", "tel" or "url". Possibly also as "number", but browser support should be checked if this is feasible.
Possible UI solutions:
1)
Add a dedicated element type for each HTML5 field type. The corresponding validators are automatically added to the field (either visible or invisible). The validator for "tel" will be an empty one as there is no globally defined format for telephone numbers.
2)
Add a type field to the text element. The validation is done likewise to solution 1.
3)
Make the validators change the type of the input fields.