Hi,
I have a simple form with text fields, and only two of the fields, if one is filled, I would like the user prompted to complete the other field next to it, and vice versa. If neither is filled no problem, if both filled no problem.
Like this,
If a user fills in textbox 1 prompted to complete textbox 2
If a user fills in textbox 2 prompted to complete textbox 1
Does anyone know how to do this? I do not have a submit button on the form so I think I have to add a validation script?
I am new to this so I apologize, but if anyone could help me that would be great.
Thanks so much,
Jon
Sure, that is certainly doable. If you are new to scripting the best place to start is with the JavaScript for Acrobat API Reference, which you can find with the rest of the SDK documentation at http://www.adobe.com/devnet/acrobat.
Then a good use of your time for learning would be to go to the Learning Center here at AUC and browse through the 70 or so tutorials on using JavaScript in Acrobat and PDFs (select JavaScript in the pulldown for filtering results). There are many sample files included with tutorials so you can examine the code used that is explained in the articles.
Hope this helps,
Dimitri
WindJack Solutions
www.pdfscripting.com
www.windjack.com
Dimitri Munkirs
WindJack Solutions
pdfscripting.com