Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

how to set a text field to only allow alpha characters


Level 3

How do I set up a text field to only allow alpha characters? Is there a java script for this?

2 Replies


Level 7

You can use a validation pattern, but this will not stop anyone from entering a non alpha character.


Level 10


you can use a regular expression to filter the values during the change event.

This will only allw to enter characters in the range a-z and A-Z.

if (!xfa.event.change.match(/[a-zA-Z]/g)) {

  xfa.event.change = "";