I've hunted for a possible solution for this one. But no luck :(
I have 4 fields, let's call them A,B,C and D.
When checkbox1 is selected field A and B, not C & D are available, and when checkbox2, C and D are available, but not A & B.
Fields A,B,C and D get their values from other fields W,X,Y and Z
So I'd want A=W, B=X, C=Y, and D=Z.
(W,X,Y, and Z are fields on another part of the form)
Fields A,B,C,D,W,X,Y, and Z are all numeric values.
I hope this makes sense.
All contributions gratefully received.
thanks
Al
This is all doable with scripting, but does require a bit of work and understanding of Acrobat JavaScript. Here is an article about showing and hiding fields based on check box or radio button selection-
http://www.acrobatusers.com/tech_corners/javascript_corner/tips/2006/show_hide_fields/
Try out some of the examples- then if you have specific problems with your script post again. It's helpful if you provide what error messages you get when you run your code in the JavaScript Console. If you don't know how to use the JavaScript Console here is an article explaining how to use it-
http://www.acrobatusers.com/tech_corners/javascript_corner/tips/2006/javascript_console/
Hope this helps,
Dimitri
WindJack Solutions
www.pdfscripting.com
www.windjack.com
Dimitri Munkirs
WindJack Solutions
pdfscripting.com