PLEASE NOTE: These forums are no longer utilized and are provided as an archive for informational purposes only. All support issues will be handled via email using our support ticket system. For more detailed information on this change, please see this blog post.

Restricting Input in a Text Filed to English Charaters

  1. Hi,

    Has anyone done this type of thing before or know any examples where I code get a code snippet to use as validation. I need to exclude info being entered in Chinese to a form text field.

    Thx,
    Mike

    Posted 12 years ago on Tuesday July 12, 2011 | Permalink
  2. I haven't seen any code snippets or examples that do this, but it's possible to write your own custom validation using the gform_validation hook. Here is a tutorial on how to use the gform_validation hook:

    http://www.gravityhelp.com/documentation/page/Using_the_Gravity_Forms_%22gform_valiation%22_Hook

    Posted 12 years ago on Tuesday July 12, 2011 | Permalink
  3. Maybe I should look at making sure the characters are valid not invalid.

    If there was a definition of all the valid English characters then I could check that the input characters are all in the set.

    Cheers
    Mike

    Posted 12 years ago on Tuesday July 12, 2011 | Permalink