Support Article

Max chars issue with Chrome and Firefox browsers



The max char is not working for number type in Chrome and Firefox browsers, but the same is working in Internet Explorer.

Error Messages

Not applicable

Steps to Reproduce

Define 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 Cause

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 browsers do not.


Perform 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:
function addMaxLength(){
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

Have a question? Get answers now.

Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.