I must input attribute type = number
Keeps getting this error message
Hi @miekwave
Thanks for posting — this is expected behavior at this point as the type
attribute is reserved.
I’ve pinged the engineers to find out exactly why this is reserved and will get back to you when I have more info.
EDIT:
Type is reserved because we use this attribute for form fields
Thanks!
See Designer 14: “Known element reserved custom attribute names”
â–ş [LIST] Feature Availability & Limits - Project settings - Forum | Webflow
The alternative is to use a JavaScript workaround to “convert” the field’s type on page load.
<script>
$('.number-field').attr('type', 'number');
</script>
We just shipped a change to allow number
under “Text Type:”
You can also set custom attributes like min
, max
, and step
.
Excellent news! that was fast!
This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.