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

Anonymous
Not applicable

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

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!
Tags (1)
2 REPLIES 2
Justin_Cooperm2
Level 10

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

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.
Anonymous
Not applicable

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

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.