Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

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

share|improve this question
7  
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

1 Answer 1

up vote 10 down vote accepted

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

share|improve this answer
    
Thanks Werner. It works perfectly. Much appreciated. –  Reza Feb 1 '12 at 12:08

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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