Skip to Main Content

APEX

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Client side validation for numeric input only

Richie VJun 20 2017 — edited Jun 21 2017

I need a method to validate a field for numeric input only before page submit so I'm trying to use a dynamic action on lose focus or on change. I can't get it to work properly been trying to use a condition for RegEx similar to RegExp('^[0-9]$') I can't get it to work.

Apex does give an error message that looks like this (after a lose focus on a numeric field if it contains non numeric data)

pastedImage_0.png

This error is not graceful I need to prevent the error shown and show the user a more friendly error message that I can display some custom text in. This is apex 4.2, Tomcat running on the server.

Any suggestions? I did a search but can only find server side validations or validation other than non numeric, Any help would be appreciated, regards.

This post has been answered by Pavel_p on Jun 20 2017
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jul 19 2017
Added on Jun 20 2017
10 comments
1,265 views