Skip to content

Instantly share code, notes, and snippets.

@weiserman
Created January 16, 2014 08:46
Show Gist options
  • Select an option

  • Save weiserman/8451695 to your computer and use it in GitHub Desktop.

Select an option

Save weiserman/8451695 to your computer and use it in GitHub Desktop.
Using script on SAP Adobe Interactive to check values are populated correctly, this is entered in the "Validate" Event
var string = this.rawValue;
var pattern = /[^A-Z]/;
if (!this.isNull)
{
if (pattern.test(string))
{
xfa.host.messageBox("Please enter Initials in UpperCase having no blank spaces. Do not use any special characters, for eg: ^ - \\\ . /", "UpperCase characters."); this.rawValue = null;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment