Posts

Showing posts with the label RegEx

AutoStore: AutoCapture Validate Regex

Image
It is possible to check the field input of an AutoCapture form as it is submitted. In the following example, we begin with an AutoCapture form String  (text) field named "Email To". Make sure the Run on form validate option is enabled. Doing so will execute the Form_OnValidate event handler. Here, we can pass the field value with a regular expression pattern into a custom function named IsValidRegExp() , which returns a True or False. AutoCapture Form Validate RegEx Example '================================================================================ ' CONSTANTS SECTION '-------------------------------------------------------------------------------- Const  REGEX_PATTERN = "^\S+@\S+$" Const FIELD_TO_TEST = "Email To" '================================================================================ ' EVENT PROCEDURES '-------------------------------------------------------------------------------- Function Fo...