Skip to main content
March 3, 2014
Question

Anyone know how to limit 2.0 form inputs to only allow English Characters?

  • March 3, 2014
  • 2 replies
  • 1104 views
Would love to hear people's input! Was thinking about using mask input, but isn't that just limiting the structure of the input? Would it work for like a First Name field or a Job title field? 

Thanks!
This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.

2 replies

Justin_Cooperm2
Level 10
March 3, 2014
Since your scenario is pretty straightforward, mask input woud definitely work. The number of letter wildcards you use would just equal the length of the field.
March 3, 2014
Justin definitely had the right idea on the above, but wanted to make a couple of clarifications.
  1. Input mask does, by default, limit you to entering only English characters if the alpha character wildcard (specifically "a") is used
  2. However, because input masking also sets an exact constraint on the number of charactrs that must be entered, it's not necessarily ideal for a First Name or Job Title field, which would inherently have users entering different numbers of characters
    1. Example: If you set the wildcard in the input mask as "aaaaa" (5 a's), for the "First Name" field, unless a user enters a name that is exactly 5 characters long, it will not save.
My recommendation with regards to input masks are to use them for fields that have very standardized inputs such as phone numbers or zipcodes.