Feature proposal #7620
closedImprove core field types with HTML5 input types
100%
Description
Integer fields are output as text fields and instead should be output as HTML5 number type. (see #7690)
- https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/number
Implement option for Integer fields to display as range type.
Implement support for decimals in Integer fields (see #7690)
- May require new fieldtype as storage would need to be float instead of int
- Best way to probably do this is if the field as the "Step" parameter configured to allow for a decimal the storage should change to float
Rename Integer fieldtype to Number fieldtype Integer field is already called Integer Number, which is clear enough
Email fields are output as text fields and instead should be output as HTML5 email type.
- https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/email
Date fields (non-dropdown) are output as text fields and instead should be output as HTML5 date type.
- https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/date
Web Address fields are output as text fields and instead should be output as HTML5 url type.
- https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/url
Implement new Color fieldtype
- https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/color
These improvements should also be applied to backend XML driven inputs as well.