6

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

  • 8
    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. – Martin Scharrer Dec 29 '11 at 1:05
16

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

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

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.