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

Adobe PDF Forms - Check box effect radio button value.

New Here ,
Mar 17, 2023 Mar 17, 2023

Copy link to clipboard

Copied

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

Views

1.2K

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
community guidelines

correct answers 1 Correct answer

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"]);

Votes

Translate

Translate
Community Expert ,
Mar 17, 2023 Mar 17, 2023

Copy link to clipboard

Copied

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?

Votes

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
community guidelines
New Here ,
Mar 17, 2023 Mar 17, 2023

Copy link to clipboard

Copied

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.

Votes

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
community guidelines
Community Expert ,
Mar 18, 2023 Mar 18, 2023

Copy link to clipboard

Copied

Use this as Mouse Up action of checkbox:

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

Votes

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
community guidelines
New Here ,
Mar 18, 2023 Mar 18, 2023

Copy link to clipboard

Copied

LATEST

Thank you for the help; that work great.

Votes

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
community guidelines