Text field validation

3 views
Skip to first unread message

milenp

unread,
Jul 3, 2009, 4:52:07 AM7/3/09
to wForms Group
Hello I am wondering how can i change the text validation so it
supports also unicode characters.
Thanks in advance

Cedric Savarese

unread,
Jul 3, 2009, 11:08:04 AM7/3/09
to wforms...@googlegroups.com
Hi,

Yes, it's possible. Look at the localization files:
http://code.google.com/p/wforms/source/browse/trunk/localization/

If your language is in the list, you just need to load the localization-xx.js file after wforms.js

If you need a different unicode range, open any localization file and look at the validateAlpha and validateAlphanum prototypes: For instance, http://code.google.com/p/wforms/source/browse/trunk/localization/localization-ja.js. Copy and adjust as needed.

Cedric
Reply all
Reply to author
Forward
0 new messages