If you have questions or if you want to share your opinion about Aware IM post your message on this forum
#54277 by BobK
Tue Jul 07, 2020 1:03 pm
You have at least 2 options for this.

Option 1
This option will not initially stop them from entering non-numeric characters, but they will get an error when trying to save the form.
Enter a rule like the following on your BO
Code: Select allIf MATCHES(BO.NumericField, '^[0-9]*$')='No' Then
REPORT ERROR 'NumericField MUST BE Numeric'


Option 2
Set the "Input mask" of your field to accept only numeric digits and the user will be unable to enter anything but numbers.
The mask character 0 will accept any digit between 0 and 9.
The problem with this option is that you will need to set the mask to accept the maximum number of characters. For example '000000000' would be needed to be able to enter 9 digits.
If the user enters less digits then the maximum allows, the entry symbol will still display for the remaining digits.
#54283 by PointsWell
Tue Jul 07, 2020 10:01 pm
Or use the Validate as. This will not stop the user typing non numerics but it will generate a validation error on save.

Screen Shot 2020-07-08 at 07.59.45.png
Screen Shot 2020-07-08 at 07.59.45.png (34.55 KiB) Viewed 655 times


Additional Regex validations can be added to the UIConfig.props file

Code: Select allTextInputMask1=US Phone\#/\\(?\\d{3}\\)? ?\\d{3}[-.]\\d{4}/
TextInputMask2=Numeric\#/[0-9]*/i
TextInputMask3=ISTC\#/\\([A-F0-9]{3})-\\d{4}-([A-F0-9]{8})-([A-F0-9]{1})/

Who is online

Users browsing this forum: No registered users and 8 guests