Support Article
Number input min or max length not enforced, Firefox and Chrome
SA-21625
Summary
After specifying a maximum or minimum length in the properties panel for a Number or Integer control and selecting "Number" as the Editable Format Type in the Presentation tab, users are able to exceed these limits in Chrome and Firefox, but not in Internet Explorer.
Error Messages
Not Applicable
Steps to Reproduce
- Add a Number or Integer purpose specific control to a layout.
- Specify a maximum number of characters.
- Enter more than the maximum number of characters in Firefox or Chrome.
Root Cause
At the time of this article, HTML5 does not support the maxlength or minlength attributes on Number type inputs. Internet Explorer goes beyond the HTML5 specification to enforce maxlength and minlength on Number inputs, while Firefox and Chrome do not.
Resolution
Perform the following local-change:
Change the Editable Format Type to "Text" or apply validation to the input field.
Note: There will be no impact of changing the Editable Format Type to Text (from Number) to a field that can only accept numbers.
Published April 27, 2017 - Updated October 8, 2020
Have a question? Get answers now.
Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.