Note the upgraded forum! If you are experiencing issues logging in, you may need to reset your password which should send an email. If the email doesn't arrive, be sure to check your spam folder just in case.
Form module: Attributes for form fields
I am using the forms module and created a form. The form has a field of type number. Now I want to define a max value and a default value for the field. I entered max=10 default=1 in the attributes input field.
The generated code is
<input type="number" name="quantity" id="quantity" value="" class="numeric" required min="0" max="10000" data-decimal="0" data-negative="0" max=10 default=1 />
The browser only interprets the first max value with 10000. Why isn't the value replaced. And how can I pass the default value of 1 to the field?