[Tex/LaTex] How to set the border color in PDF forms to none

formshyperref

I want to set the color of the border for my text fields to be none.
But the parameter doesn't seem to accept none as a value.
Here is an example:

\documentclass[12pt]{article}
\usepackage{hyperref}
\usepackage{xcolor}

\begin{document}

\begin{Form}
\TextField[name=formname,bordercolor=none,width=6cm] {\mbox{}}
\end{Form}

\end{document}

Is there a way to make this work?

Also with the backgroundcolor parameter.

Best Answer

The solution is to leave the value empty and use bordercolor=. Here is the example:

\documentclass[12pt]{article}
\usepackage{hyperref}
\usepackage{xcolor}

\begin{document}

\begin{Form}
\TextField[name=formname,bordercolor=,width=6cm] {\mbox{}}
\end{Form}

\end{document}