I am new to this type of validation. I have been watching videos and going through tutorials but have not been able to figure out how to accomplish this validation
I am using Acrobat pro to create this form.
I have a text box "acctNum" that I need to validate. below are possible acctNum variations
# = any munber
* = number or letter
no special characters allowed.
There are three possible parts to the acctNum each seperated by a "." the first two parts are required but not the third. I suggested to the powers that be to have three fields but they decided they want a single field.
busUnit.objAcct.sub
Samples 11689.23658.02 or 2031H603.23679 or 450.36106.1006 and so on...
busUnit variations (required)
####*###
#######* (for the prior two variations busUnit can not have letters in both places. its one or the other or neither)
#####
4500
450
##
#
objAcct (required)
#####
Sub (optional)
####
##
I will probably use this validation on several different forms so any help would be greatly appreciated.
Thank you,
Mike
There is an article on this topic here:
http://www.acrobatusers.com/tutorials/text-matching-regular-expressions
Thom Parker
The source for PDF Scripting Info
[url=http://www.pdfScripting.com]pdfscripting.com[/url]
The Acrobat JavaScript Reference, Use it Early and Often
[url=http://www.adobe.com/devnet/acrobat/javascript.php]http://www.adobe.com/devnet/acrobat/javascript.php[/url]
Then most important JavaScript Development tool in Acrobat
[url=http://www.pdfscripting.com/public/34.cfm#JSIntro][b]The Console Window (Video tutorial)[/b][/url]
[url=http://www.acrobatusers.com/tutorials/2006/javascript_console][b]The Console Window(article)[/b][/url]
Thom Parker
The source for PDF Scripting Info
www.pdfscripting.com
Very Important - How to Debug Your Script