Streaming live at 10am (PST)

Type Attribute is reserved


#1

I must input attribute type = number
Keeps getting this error message
image


#2

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!


#5

See Designer 14: “Known element reserved custom attribute names”

► [LIST] Feature Availability & Limits

The alternative is to use a JavaScript workaround to “convert” the field’s type on page load.

<script>
$('.number-field').attr('type', 'number');
</script>

#6

We just shipped a change to allow number under “Text Type:”

You can also set custom attributes like min, max, and step.


#7

Excellent news! that was fast!