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

How do I clear a radio button?

Guest
Jan 05, 2017 Jan 05, 2017

Is it possible to deselect a choice in a radio button group on a fillable PDF? There are times a radio button choice may be selected accidentally. When this happens, the only choice one may have is to abandon the form they have been completing, and start from scratch in hopes the mistake is not made again. Our forms are very detailed and with multiple pages and combinations of drop downs, check boxes, radio buttons, text boxes, etc... with questions totaling well over 100.  You can imagine someone's frustration if they've completed over 100 questions and near the end of the form there's a radio button question they did not mean to answer... The radio buttons are used exclusively for one choice selections only, otherwise check boxes are used. I'm interested in any simple solutions. Maybe Adobe can come up with a solution. I don't understand why radio buttons don't function the same way as check boxes. If you click once, it's marked; if you click again, it clear. Any help is greatly appreciated. Detailed steps for the fix are also appreciated. Thanks!

TOPICS
How to , PDF forms
202.6K
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 ,
Jan 05, 2017 Jan 05, 2017

This is the functional definition of radio-buttons. Once a selection is made, you can only switch from one button to another, not de-select them entirely (unless you reset the form).

If you want to be able to de-select the buttons then you should use check-boxes. Give them the same name but different export values and they'll function just like radio-buttons (ie, when you click on button in a group the selected one becomes un-selected), with the additional feature that you could de-select a button but clicking it.

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 Beginner ,
Jan 12, 2022 Jan 12, 2022

Haha well I just found Check Box Style, I am happy, but I still like the radio-button style better! 🙂

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 03, 2022 Mar 03, 2022

Super! Brilliant. Thank you so much for this!

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
Explorer ,
Nov 04, 2024 Nov 04, 2024

Thank you for explaining the functionality of radio buttons and offering a workaround using checkboxes. While it’s true that radio buttons were inspired by old car radio buttons—where one button was always pressed in while others popped out—the analogy doesn’t fully align with digital radio buttons.

In the physical radio buttons, one choice was always selected because of their mechanical design, but digital radio buttons operate differently. By default, they start with no button selected, which contradicts the idea that they must always have an option chosen, as in the physical counterparts. The concept behind radio buttons is simply to limit the user to one selection within a group, not necessarily to require a selection at all times.

It does feel a bit outdated in the digital space to disallow deselecting a choice without resetting the form entirely. The functionality of selecting only one at a time can still be preserved without forcing a choice to remain locked in. I appreciate the workaround with checkboxes to allow deselection, though ideally, native support for this feature would be beneficial. Thanks again for sharing your approach!

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 ,
Jan 22, 2025 Jan 22, 2025

I could uncheck the radio button by adding a new additional one in the same group, previewing the form and checking the new button, then deleting it and saving the form.

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 ,
Jan 22, 2025 Jan 22, 2025

Or you could simply clear the form...

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 ,
Jan 22, 2025 Jan 22, 2025

not if you want to keep all data already entered, as clearing the form will remove all of them in addition to resetting the radio buttons

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

In the case of ...

"There are times a radio button choice may be selected accidentally. When this happens, the only choice one may have is to abandon the form they have been completing...."

... then,  the  Edit / Undo action worked for me,

near the end of a long form, which I was about to abandon, after I searched for help, to no avail, and just before I clicked on "NO, do not save changes before closing "  ...

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 ,
Jul 12, 2021 Jul 12, 2021

This is actually a brilliant advice. Nice workaround!

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
Explorer ,
Mar 20, 2025 Mar 20, 2025

That requires some user intelligence, which is not guaranteed.

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 20, 2025 Mar 20, 2025

Here is a sample PDF with your Radio and Checkbox options.

 

David Creamer: Community Expert (ACI and ACE 1995-2023)
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
Explorer ,
Mar 24, 2025 Mar 24, 2025
LATEST

This is great, David, thanks very much for posting it.

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 Beginner ,
Dec 07, 2020 Dec 07, 2020

So you accidentally clicked a button and saved your complete form.  We found a work-around to deal with this. Basically what you do is add a button to the form under the same group-> go to the preview -> Select the new button -> Sacrifice that button with the selection in it by deleting it.

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 ,
Dec 07, 2020 Dec 07, 2020

That's a very cumbersome way of solving this issue. You can just clear the form, or run this JavaScript code to clear this one field:

this.resetForm(["Radio1"]);

(replace "Radio1" with the actual field name, of course)

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 Beginner ,
Mar 23, 2021 Mar 23, 2021

Edit->Clear Form.

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 ,
Dec 30, 2021 Dec 30, 2021

An alternative to clearing the form is to combine the target group with another group, then split them apart.  

 

Create a new radio group, change the name of the target group to the same name as the new group (the new group will now have 4 buttons). Then change the name of the target group back to the desired name. The radio buttons will be unchecked.

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 ,
Dec 31, 2021 Dec 31, 2021

That is an incredibly convoluted solution to a problem that can be easily solved with a single line of code.

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 ,
Feb 04, 2022 Feb 04, 2022

If you, as the form creator/owner, want to reset the form, you can just do it the way it's mentioned below (Tools - Forms - Preapare Form - More Options - Clear Form). BUT, if you want the end user to be able to deselect radio buttons or you just want a quick way to clear the form (or just specific fields) it is possible to add a button to your PDF to do just that.  

 

Here's how to create & label the button:

Place the button form field on your form where you want it, give it a name and click the All Properties link. This opens the Button Properties dialog box. Click the Actions tab, then choose Reset a form in the Select Action from the drop down list. Next, click Add..., and select the fields you want to reset in the Reset a Form dialog box. Click OK. On the Options tab you can give the button a label. If you don't, the button will be blank and the end user won't know what it's for. 

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
Explorer ,
Nov 01, 2024 Nov 01, 2024

In Acrobat 2024, if you are the author creating the form and need to reset it after testing, go to All Tools > Prepare a Form. Then in the Fields panel on the right side there is an Options menu (three dots) which has Clear Form. 

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 23, 2022 Mar 23, 2022

One way to do this is to toggle the option "button is checked by default" on/off.

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 ,
Sep 04, 2023 Sep 04, 2023

If you want to modify the behavior of the radio button group such that the selected radio button can be unselected by clicking on it then here is one way to do it. For this example consider three radio buttons in the group and the radio button group's name is "RadioButton1". The following code should be added as a document-level script:

var rb = getField("RadioButton1");
rb.exportValues = [ "First", "Second", "Third" ];
var cval = "";

The following code should be added to every radio button that should be unselected:

if (cval==rb.value) {
  rb.value = "";
  cval = "";
} else {
  cval = rb.value;
}

I have included an example PDF document with radio buttons that behave as you required.

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 ,
Sep 05, 2023 Sep 05, 2023

Use check-boxes instead of radio-buttons.

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 Beginner ,
Dec 07, 2023 Dec 07, 2023

This worked beautifully for one set of buttons, but when I tried to modify it for multiple sets, it no longer deselects. What happened?

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 ,
Sep 05, 2023 Sep 05, 2023

All the answers here are frustrating. If you are on the user end and accidentally selected a "yes" or "no" where you want to leave the question unanswered there is absolutely nothing you can do. Clearing the form is fine if that's the ONLY change you made since opening it, but generally one does not want to have to go back and re-key the entire form just to fix one response. Even if you can crack open the form, editing those radio buttons isn't as straight forward as one might like. Massive time suck created by something that is supposed to make filling out a form easier than printing, completing by hand, and scanning. 

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 ,
Sep 05, 2023 Sep 05, 2023

You can create a clear button that resets ONLY the radio buttons OR you can use check boxes but set them up like a radio button. The latter option lets the user select only one choice but can deselect if desired.

 

Typical Radio buttons: Same Field Name; Different Option Export Values.

Typical Check boxes: Different Field Name; Same Option Export Value (e.g. Yes).

"Pseudo" Radio Buttons: Use Check boxes with Same Field Name; Different Option Export Values.

 

David Creamer: Community Expert (ACI and ACE 1995-2023)
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 ,
Feb 07, 2024 Feb 07, 2024

I realize this is an older issue, but there didn't seem to be a clear answer anywhere else. So instead of having to clear the entire form, you can go to Tools>Prepare Form (open the tool). Then select the button that is checked and delete it. Then copy/paste another identical radio button from the form into the right position and then rename. 

There should be a way to change the field value of the button to change it back to being unchecked, but I was unable to make it work in the 15 min it took me to figure out I could just copy/paste an identical empty radio button into it's place after deleting it. 

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