Link to home
Start Free TrialLog in
Avatar of Andreas Hermle
Andreas HermleFlag for Germany

asked on

check whether a checkbox is checked and then perform actions using javascripting

Dear Experts:

I got a single Checkbox named 'MyCheckBox' on an acrobat form.

I would like to run a javascript on that CheckBox with the following requirments:

If MyCheckBox gets checked, the script should ...
... check whether a radio button "MyRadionButton" with the export value 'Sliding Door' is activated ... if yes ...
the following actions are to be performed:
this.getField("sl2").readonly = false ;
this.getField("sl2").required = true ;
this.getField("sl2").fillColor = color.white ;

... else MyCheckbox gets unchecked
... do other stuff

Help is much appreciated. Thank you very much in advance.

Regards, Andreas
ASKER CERTIFIED SOLUTION
Avatar of Julian Hansen
Julian Hansen
Flag of South Africa image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Andreas Hermle

ASKER

Great Julian,

this did the trick. Thank you very much for your valuable help. I really appreciate it.

Regards, Andreas
You are welcome.