Highlighted

checkbox tick when a radiobutton is selected. when checkbox gets unticked, all radio buttons clear

Community Beginner ,
Sep 28, 2020

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

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

TOPICS
Create PDFs, Edit and convert PDFs, PDF forms

Views

70

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more

checkbox tick when a radiobutton is selected. when checkbox gets unticked, all radio buttons clear

Community Beginner ,
Sep 28, 2020

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

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

TOPICS
Create PDFs, Edit and convert PDFs, PDF forms

Views

71

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Sep 28, 2020 0
Engaged ,
Sep 28, 2020

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

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Sep 28, 2020 1
Community Beginner ,
Sep 28, 2020

Copy link to clipboard

Copied

That works perfect, thx !!

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Sep 28, 2020 0
Community Beginner ,
Sep 29, 2020

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?

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Sep 29, 2020 0