Close popover
Ridwan Vinck (RidwanV9)
AG Insurance

AG Insurance
RidwanV9 Member since 2018 7 posts
AG Insurance
Posted: November 22, 2019
Last activity: December 2, 2019

Numeric field allowing non-numeric characters (E, e, +, -)

I have an integer property in a section for which I use the "numeric" editable format to restrict the user to be able to enter only numerical characters.

From the other articles of the PEGA community, I understood that there are currently the 2 following issues:

1) This format allows the user to enter also the following characters: +, -, E, e (exponent)

2) If the property value contains "e" or "E", it is emptied when tabbing out the field or submitting the form (Browser issue), which means that :

2a) the required fields will display the error message "Cannot be blank"

2b) custom validation (to display an error message like "Numeric fields cannot contain letters") won't work because it will check an empty property!

Therefore, what is the solution?

a) Ideal solution: Is it possible to update the numeric editable format to allows only digits and not +, -, E, e ?

b) Work around: how to avoid the browser to empty the field?

***Edited by Moderator: Lochan to update platform capability tags***

User Experience
Moderation Team has archived post