These forums are now Read Only. If you have an Acrobat question, ask questions and get help from one of our experts.

Show/Hide Checkbox Conundrum

he51922
Registered: Apr 4 2007
Posts: 4

Hi,
 
I'm in the middle of designing a PDF form for the Health department of Western Australia and I've run into a problem.
 
I can't seem to be able to show/hide a checkbox depending on the selection made on one of my drop-down combo boxes. The JavaScript I'm using to show/hide text fields works fine but when applying that to a checkbox it just stares at me blankly.
 
Is there a solution to this seemingly simple problem. I would really appreciate some help on this one.
 
Kind Regards,
 
Graham.

My Product Information:
Acrobat Pro 8, Windows
thomp
Expert
Registered: Feb 15 2006
Posts: 4411
What forms technology your using,Acrobat or LiveCycle? Can you post your code, or better yet, place your form somewhere we can download it from?

Have you looked at this article:

[url=http://www.acrobatusers.com/tech_corners/javascript_corner/tips/2006/change_another_field/]http://www.acrobatusers.com/tech_corners/javascript_corner/tips/2006/change_another_field/[/url]

Thom Parker
The source for PDF Scripting Info
www.pdfscripting.com
Very Important - How to Debug Your Script

he51922
Registered: Apr 4 2007
Posts: 4
Hi Thom,

To Answer your initial questions.

I'm using Acrobat and yes I have seen the article you have referred to.

I've discovered the solution but not sure exactly how the problem exists.

It seems that if I edit the JavaScript that performs the action of adding/hiding the checkbox whereby I move the line of code that shows/hides the checkbox from the bottom of the list of “getField” calls to the top then this issue appears to resolve itself.

Is there an ordering rule/principle I’m to adhere to?

The link below will allow you to download the PDF I’m working on:

[url=http://groups.google.com.au/group/he51922/files]http://groups.google.com.au/group/he51922/files[/url]

Kind Regards,

Graham.