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!

Allow only certain characters in an input field

FofanaDec 28 2016 — edited Jan 3 2017

Hi there,

I have the requirement to allow only certain types of characters in an input field:

Numbers and lower/upper case letters (with accents too) and the following characters:

_ Underscore

- Hyphen

() Parenthesis

* Asterisk

Sharp

, Comma

. Dot

So I was trying to adjust this code to my need but seems confusing. For example the accents. The ASCII codes for the extended characters are between 128 and 155 but that does not work in the code above

And more funny I put a little code to show which keycode was pressed it displays 233 for the symbole é instead of 130

pastedImage_3.png

Any help?

Thanks

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jan 31 2017
Added on Dec 28 2016
3 comments
1,349 views