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
- Create a section and a layout.
- Define a Text property.
- 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:
- Open the property .ZipCode.
- Navigate to the Advanced tab.
- 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
Have a question? Get answers now.
Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.