Howdy all,
I'm working on an Acroform (Acrobat 8.1.2, WinXP Pro) that needs to have a simple feature: a custom validation script that can be toggled on or off through the use of a check box.
The checkbox ("CheckBox1") should point at the text box ("TextBox1"). My JavaScript skills are largely zero, unfortunately. I do have the Adobe JavaScript Scripting Reference pdf, the API guide, and I've searched through a lot of the old threads here at the AUC forums. I've found the Field/Validate control on page 337 in the scripting reference but there's no example on how to use it.
So that being said, I need the following:
1.) A Checkbox JS that toggles the Text Box Custom Validation Script on and off, something like this:
if (this.rawValue==1) TextBox1.rawValue= ;
2.) A Custom Validation Script for my Text Box that would make sure the field value is formatted in a Date format ("MM/DD/YYYY"). I have a few threads I'm reading through since this is a common problem.
Thanks in advance.
When I put this into my [u]CheckBox1[/u] check box, the JavaScript console comes back with this error:
5:Field:Mouse Up