Max chars issue with Chrome and Firefox browsers
SummaryThe max char is not working for number type in Chrome and Firefox browsers, but the same is working in Internet Explorer.
Error MessagesNot applicable
Steps to ReproduceDefine a field as Number type in section and set max chars limit. The max char is not working in Chrome browser. The same is working in Internet explorer browser.
Root CauseHTML5 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 browsers do not.
ResolutionPerform the following local-change:
1.Change the control from Number to Text Input.
2.Create a non-auto generated section and place below script in Html source section:
obj = document.getElementById("propertyname");
3.Include this section in required section where use case has been defined.
Though this change restricts the user from entering more than the maximum number provided, it will not restrict the user from entering the characters, but it will throw an error on focus out when character is entered.
Published January 5, 2017 - Updated January 13, 2017