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 type input overrides Max Characters on Text Field

SA-70881

Summary



A property of Text type with character restrictions is configured to stop accepting user input at five characters. However, on switching to Number type, the input fails to restrict the user entry. Hence, users can input more numbers than configured in the  maximum characters setting.


Error Messages



Not Applicable


Steps to Reproduce

  1. Create a section and a layout.
  2. Define a Text property.
  3. Add the property to the layout and set the below Presentation options on the field:

    Editable Settings: Min/Max Characters - 0/5
    Editable Format: Number

Root Cause



A third-party product issue.
The issue is with Number type input fields.



Resolution



As a local-change, perform Validation explicitly for the length for an input field of Number type.

For example, the out-of-the-box Edit Validate rules validate the US Zip Code (rule name is USZipCode).

Follow the below steps to use USZipCode:
  1. Open the property .ZipCode.
  2. Navigate to the Advanced tab.
  3. Refer the USZipCode Edit validate rule in the Use Validate field.



Post incorporating the above change, on change of the zipcode field in the UI, a message displays as below.

Published January 23, 2019 - Updated December 2, 2021

Was this useful?

0% found this useful

Have a question? Get answers now.

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

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