• Community
    • Adobe Experience Manager Sites & More
    • Adobe LiveCycle (Archived)
    • Discussions
    • Re: How to force alpha or numeric inside text fiel...
  • Re: How to force alpha or numeric inside text fiel...

Avatar

Level 10 radzmar
Level 10
‎10-11-2010 06:01 PST
  • Mark as New
  • Follow
  • Mute
  • Subscribe to RSS Feed
  • Permalink
  • Print
  • Email to a Friend
  • Report

Adding a space to the regualar expression will do the trick.

if (xfa.event.newText.match(/[^A-Za-z0-9 ]/))     

{

xfa.event.change = "";

}

Views

4.2K

Replies

0
1 Like

Total Likes

Translate
Translate
  • ελληνικά
  • Italiano
  • Nederlands
  • Polski
  • русский
  • Svenska
  • Čeština
  • Türkçe
  • 한국어
  • 中文 (简体)
  • Español
  • 日本語
  • Deutsch
  • Português
  • Français
  • English
Reply
Powered by Khoros