Skip to main content
Participant
March 17, 2023
Answered

Adobe PDF Forms - Check box effect radio button value.

  • March 17, 2023
  • 1 reply
  • 1547 views

I need help, I was hoping to have a checkbox if checked to give a radio button group a value. And if unchecked it would set that radio button group back to no value selected.

 

Is this possible?

Thanks,

Jay

This topic has been closed for replies.
Correct answer Nesa Nurani

Use this as Mouse Up action of checkbox:

if( event.target.value != "Off")
this.getField("emergency").value = "1";
else
this.resetForm(["emergency"]);

1 reply

Nesa Nurani
Community Expert
Community Expert
March 17, 2023

Yes, it's possible.

What are radio button name and is there more than one radio button in a group, if yes which one do you want to check with checkbox?

Participant
March 18, 2023

The radio button group is named emergency. Yes, there is more than one button, the button I want to be selected value is 1.

Thanks for any assistance you can give.

Nesa Nurani
Community Expert
Nesa NuraniCommunity ExpertCorrect answer
Community Expert
March 18, 2023

Use this as Mouse Up action of checkbox:

if( event.target.value != "Off")
this.getField("emergency").value = "1";
else
this.resetForm(["emergency"]);