Copy link to clipboard
Copied
Hi all,
I'm creating a PDF and it's my first.
I have some programming experience but haven't mastered the Adobe javascript language yet so would appreciate a nudge in the right direction.
I have a pdf form where I can select 1 our of 4 radio buttons. If one of the radio buttons is selected, a checkbox should become ticked automatically.
When I unselect/untick the checkbox, all radio buttons should erase.
Any ideas...
Thx
Copy link to clipboard
Copied
To check checkbox with radio Button use this code as MouseUp event of radio Button:
this.getField("CheckBox1").value = "Yes";
("Yes" being checkbox export value)
To uncheck Radio Buttons use this code as MouseUp event of checkbox:
if(event.target.value == "Off"){
this.getField("Radio Button1").value = "Off"
this.getField("Radio Button2").value = "Off";} //...etc
Copy link to clipboard
Copied
To check checkbox with radio Button use this code as MouseUp event of radio Button:
this.getField("CheckBox1").value = "Yes";
("Yes" being checkbox export value)
To uncheck Radio Buttons use this code as MouseUp event of checkbox:
if(event.target.value == "Off"){
this.getField("Radio Button1").value = "Off"
this.getField("Radio Button2").value = "Off";} //...etc
Copy link to clipboard
Copied
That works perfect, thx !!
Copy link to clipboard
Copied
I have a few identical PDF's. Is it possible to copy checkboxes + radiobuttons + textboxes all in one go to another pdf?
Get ready! An upgraded Adobe Community experience is coming in January.
Learn more