Skip to main content

This content has been archived and is no longer being updated. Links may not function; however, this content may be relevant to outdated versions of the product.

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

  1. Add a Number or Integer purpose specific control to a layout.
  2. Specify a maximum number of characters.
  3. 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

Was this useful?

66% found this useful

Have a question? Get answers now.

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

Did you find this content helpful?

We'd prefer it if you saw us at our best.

Pega Community has detected you are using a browser which may prevent you from experiencing the site as intended. To improve your experience, please update your browser.

Close Deprecation Notice