8

In PDF forms, is there any way to change the default star in radio buttons to a solid circle?

1
  • 9
    You mean PDF forms created using the hyperref package? Please add a minimal working example (MWE) that illustrates this, so other people see what you are using and can modify it to contain the solution. Commented Dec 29, 2011 at 1:05

1 Answer 1

19

Use the option radiosymbol=<value>, where you can choose from the available pifont elements (or something different):

enter image description here

\documentclass{article}
\usepackage{hyperref}% http://ctan.org/pkg/hyperref
\begin{document}
\begin{Form}
\def\DefaultWidthofChoiceMenu{12pt}%
\ChoiceMenu[name=optionA,radio]{}{Option1,Option2,Option3}

\medskip

\ChoiceMenu[name=optionB,radio,radiosymbol=]{}{Option1,Option2,Option3}

\medskip

\ChoiceMenu[name=optionC,radio,radiosymbol=\ding{108}]{}{Option1,Option2,Option3}

\medskip

\ChoiceMenu[name=optionD,radio,radiosymbol=\ding{109}]{}{Option1,Option2,Option3}

\medskip

\ChoiceMenu[name=optionE,radio,radiosymbol=\ding{96}]{}{Option1,Option2,Option3}
\end{Form}
\end{document}

If you're interested in a reversed selection (placing the check box first, followed by the description), this a way to do it:

enter image description here

\documentclass{article}
\usepackage{hyperref}% http://ctan.org/pkg/hyperref
\begin{document}
\begin{Form}
\def\DefaultWidthofChoiceMenu{12pt}%
\ChoiceMenu[name=optionA,radio]{\mbox{}}\null Option1
\ChoiceMenu[name=optionA,radio]{\mbox{}}\null Option2
\ChoiceMenu[name=optionA,radio]{\mbox{}}\null Option3

\medskip

\ChoiceMenu[name=optionB,radio,radiosymbol=]{\mbox{}}\null Option1
\ChoiceMenu[name=optionB,radio,radiosymbol=]{\mbox{}}\null Option2
\ChoiceMenu[name=optionB,radio,radiosymbol=]{\mbox{}}\null Option3

\medskip

\ChoiceMenu[name=optionC,radio,radiosymbol=\ding{108}]{\mbox{}}\null Option1
\ChoiceMenu[name=optionC,radio,radiosymbol=\ding{108}]{\mbox{}}\null Option2
\ChoiceMenu[name=optionC,radio,radiosymbol=\ding{108}]{\mbox{}}\null Option3

\medskip

\ChoiceMenu[name=optionD,radio,radiosymbol=\ding{109}]{\mbox{}}\null Option1
\ChoiceMenu[name=optionD,radio,radiosymbol=\ding{109}]{\mbox{}}\null Option2
\ChoiceMenu[name=optionD,radio,radiosymbol=\ding{109}]{\mbox{}}\null Option3

\medskip

\ChoiceMenu[name=optionE,radio,radiosymbol=\ding{96}]{\mbox{}}\null Option1
\ChoiceMenu[name=optionE,radio,radiosymbol=\ding{96}]{\mbox{}}\null Option2
\ChoiceMenu[name=optionE,radio,radiosymbol=\ding{96}]{\mbox{}}\null Option3
\end{Form}
\end{document}

For displaying the options on separate lines, just insert a paragraph break \par at the end of each line.

Here is the pifont quick reference guide:

enter image description here

3
  • @Werner deleting \mbox{}and \medskip results same output.
    – alhelal
    Commented Oct 3, 2017 at 13:55
  • @Werner why there is no short answer for reversed selection instead of repeating same text?
    – alhelal
    Commented Oct 3, 2017 at 13:57
  • @Werner the round button not come. image
    – alhelal
    Commented Oct 3, 2017 at 16:12

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .