Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Adobe PDF Forms - Check box effect radio button value.

New Here ,
Mar 17, 2023 Mar 17, 2023

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

TOPICS
Create PDFs , How to , JavaScript , PDF forms
1.4K
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
1 ACCEPTED SOLUTION
Community Expert ,
Mar 18, 2023 Mar 18, 2023

Use this as Mouse Up action of checkbox:

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

View solution in original post

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Mar 17, 2023 Mar 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?

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Mar 17, 2023 Mar 17, 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.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Mar 18, 2023 Mar 18, 2023

Use this as Mouse Up action of checkbox:

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

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Mar 18, 2023 Mar 18, 2023
LATEST

Thank you for the help; that work great.

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