PDF Editing Issues

How to Use Acrobat Radio Buttons to Circle Yes or No

Jason MillerJason Miller Nov 10, 2026 868 views

Question details

The user wants to create interactive radio buttons in a PDF form that allow users to mark 'Y' or 'N' with a red circle.

How to Use Acrobat Radio Buttons to Circle Yes or No
Product
Adobe Acrobat
Device & OS
not provided
Scenario
Creating an interactive PDF form where users can visually select Yes or No by clicking to circle their chosen option.
Observed behavior
Needs a method to toggle a red circle outline around text characters using radio button field settings and JavaScript.
Before you start

Ensure you have a professional PDF editor like Adobe Acrobat Pro that supports form field creation and JavaScript execution, as standard PDF readers may not support these interactive scripts.

Solution 1Recommended

Using Radio Buttons and JavaScript to Toggle a Red Circle

By configuring transparent radio buttons and adding a Mouse Enter JavaScript action, you can create a toggling red circle effect over your text.

This method involves placing invisible radio buttons directly over your text. We will use a short JavaScript snippet to toggle the border color of these buttons when the user interacts with them.

1
Create independent radio buttons

Open your PDF form in edit mode and create two radio buttons placed exactly over the 'Y' and 'N' characters. Assign them different group names (e.g., Group1 and Group2) so they act independently rather than being mutually exclusive.

2
Format the button appearance

Right-click each radio button and select 'Properties'. Under the Appearance tab, set the Line Style to 'Solid' and change the border color to 'No Color' (transparent).

3
Add the JavaScript action

Go to the 'Actions' tab in Properties. Select 'Mouse Enter' as the trigger, choose 'Run a JavaScript' as the action, and click 'Add'. Paste the following code: event.target.borderColor = (color.equal(color.transparent, event.target.borderColor)) ? color.red : color.transparent;

4
Test the interactive form

Close the form editing mode and test your document. Hovering or clicking over the letter will now toggle a red circle on and off.

Using Radio Buttons and JavaScript to Toggle a Red Circle
Compatibility Warning: Always test your interactive forms in a dedicated PDF client, as web browser PDF viewers often have limited or no support for JavaScript execution.

Easily Edit and Fill PDF Forms with WPS Office

WPS Office provides a comprehensive PDF editor that allows you to easily fill out interactive forms, add text, and manually insert shapes like circles to mark Yes/No options without needing complex JavaScript code.

  1. 1. Open your PDF in WPS Office: Launch WPS Office and open your PDF document using the WPS PDF tool.
  2. 2. Add a circle shape manually: If you prefer not to use complex JavaScript, simply go to the 'Insert' tab, select 'Shapes', and choose the Oval or Circle shape.
  3. 3. Format the circle: Draw the circle over the 'Y' or 'N', set the fill color to transparent, and change the outline color to red to clearly mark your choice.
  4. 4. Save your filled document: Click 'Save' to ensure your visual selections are preserved in the final PDF document.
Fully compatible with standard PDF form formatsEasily insert shapes, text, and signatures to mark optionsLightweight, fast, and completely free to downloadAvailable on Windows, Mac, Linux, iOS, and Android
microsoft office alternative - wps office

Frequently Asked Questions

Why doesn't the red circle appear when viewing the PDF in Chrome?

Most web browser PDF viewers, including Chrome and Edge, have restricted or non-existent support for PDF JavaScript. To ensure interactive elements work correctly, open the file in a dedicated PDF application.

Can I make the radio buttons mutually exclusive?

Yes. If you want users to select either Yes or No but not both, assign the exact same group name to both radio buttons during creation. However, the specific JavaScript toggle logic provided works best when they act as independent buttons.

Is it possible to use a different color for the circle?

Absolutely. You can modify the JavaScript code by replacing 'color.red' with another supported color property, such as 'color.blue' or 'color.green', depending on your design preferences.