New: PDF Editor v2026.2 Now Available. Start Trial

How to Change the Default State of Radio Buttons on Your PDF Form

June 22, 2021 · FOXITBLOG

How to Change the Default State of Radio Buttons on Your PDF Form

Sometimes when you create a form with radio buttons, you don’t need to worry if the default state of your buttons is on or off—and sometimes you do. Like when you’re creating a form that has “yes/no” radio buttons that are configured so that when one is selected, the other is deselected.

In that case, you may want both deselected in order to require users to make a conscious decision to choose among the options you’re presenting, so that you get real answers from them and don’t negatively impact data collection if someone left an otherwise preselected button in that state.

So, how can you make this happen? The answer is simply to turn to Foxit PDF Editor.

Once you’ve launched the program, select the Form tab.

Form tab in Foxit PDF Editor

Next, choose Radio buttons, then double-click the radio button in your PDF file that you want to change. This will bring up the Radio Button Properties window for the button you’ve selected.

Now, under the Options tab, in the Radio Button Properties dialog box, ensure that Radio buttons with the same name and value are selected in unison is unchecked for all of the radio buttons you want to affect. Then make sure that all of those radio buttons have the same name. Next, click the Form tab again and select Reset form to set all of the radio buttons you renamed to the unchecked status by default in your interactive PDF file.

Want another option? Try JavaScript

You could get the same result by using JavaScript to add a push button that clears the selection of the radio button. Here’s how:

Go to Form > Radio button to add a radio button named “Radio Button0”. Then, go to Form and select Push Button to add a push button. Next, open Properties > Actions > Run JavaScript, then add the following:

var f = this.getField("Radio Button0");
f.checkThisBox(0, false);
Adding a push button to a PDF form
Run JavaScript action settings for the push button

In either case, you’ll change the default state of radio buttons in your PDF forms so that users make decisions actively by selecting radio buttons to state their preferences. Try it yourself.

Latest Posts

Discover the newest insights from Foxit