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

Radio buttons group question

Explorer ,
Nov 14, 2020 Nov 14, 2020

Copy link to clipboard

Copied

Hello,

 

I have a radio button group (4 buttons). I would like none of them to be checked when the pdf is opened.

Is this possible?

Thank you.

TOPICS
PDF forms

Views

592

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 , Nov 14, 2020 Nov 14, 2020

Sure, you just have to "Clear Form" before saving your document.

 

Acrobat_JB9baG7Jmk.png

Votes

Translate

Translate
Community Expert ,
Nov 14, 2020 Nov 14, 2020

Copy link to clipboard

Copied

Sure, you just have to "Clear Form" before saving your document.

 

Acrobat_JB9baG7Jmk.png

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
Explorer ,
Nov 14, 2020 Nov 14, 2020

Copy link to clipboard

Copied

Thanks a lot JR Boulay. Didn't see that option. I just started using Adobe Forms.

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 ,
Nov 14, 2020 Nov 14, 2020

Copy link to clipboard

Copied

+++Adding to the always valuable guidance of JR Boulay,

 

Or you can also do this same action via JavaScript.

 

Assuming that all your radio buttons have the same name, regardless of export value (if it is different or not), You can do a Document-level script with just this line:

 

 

this.resetForm(["myRadioButtonGroupName"]);

 

 

Just open the JavaScript tool and add a name to your function, except that you won't be declaring a function, just type the line as shown above (and change the name inside the quotes to the actual name of your radio button group name). And then save your document.

 

Next you open it you'll notice that the radio buttons will be unchecked.

 

If all four radio buttons have different names repeat the same line of the script  for each one.

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
Explorer ,
Nov 14, 2020 Nov 14, 2020

Copy link to clipboard

Copied

Thank you for all the details ls_rbls

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
Explorer ,
Nov 14, 2020 Nov 14, 2020

Copy link to clipboard

Copied

One more thing if possible.. I'm doing a quiz. I have 10 questions with 4 radio buttons as answers for each question.

I would like to put at the end of the quiz a summary of the answers.

Q1 - answer a) (text field)

Q2 - answer c) (text field)

etc.

So the idea is to copy the selected value for a radio button group to a text field. I've searched online but I am not able to make it work. It's recommended to put the script in the Mouse Up event for the button group

this.Text1.value = this.getfield("Group1").value;

 

Thank you.

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
Explorer ,
Nov 14, 2020 Nov 14, 2020

Copy link to clipboard

Copied

I was able to make it work

I've put this in the text field custom calculation script

event.value = this.getField("Group1").value;

 

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 ,
Nov 15, 2020 Nov 15, 2020

Copy link to clipboard

Copied

Just be aware that when no field is selected in the group it will show "Off" in the text field...

If you don't want that to happen add the following after your current code:

if (event.value=="Off") event.value = "";

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
Explorer ,
Nov 15, 2020 Nov 15, 2020

Copy link to clipboard

Copied

LATEST

Yes, I saw this. Thank you.

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