Support Article
Number format accepts letter E and e for Integer property field
SA-79139
Summary
User can enter the letter 'E' or 'e' in an Integer type property field.
Error Messages
Not Applicable
Steps to Reproduce
Create a Property type as Integer. At runtime, user can enter the letter 'E' or 'e'.
Root Cause
This behavior is as per Pega product design.
'E' and 'e' are used to represent Exponent with number. These are valid characters for number representation.
For example, E5 means 100,000 or E-6 means 0.000001.
Resolution
Here's the explanation for the reported behavior:
According to the HTML5 specification, for the client, <input type="Number"> accepts 'e' and 'E' as a valid character to represent an Exponent.
For the server, while submitting an integer with 'e' or 'E', the value is rejected as these characters are not accepted for integer type. The property must be configured to use Validate such that a message displays if 'E' or 'e' is entered.
Published August 15, 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.