I would like to have a TextField
that contains only numbers in order to make a date like [TextField]/[TextField]/[TextField]
. I also need to restrict the length, but it was asked before.
MWE:
\documentclass{article}
\usepackage[english]{babel}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{hyperref}
\begin{document}
\begin{Form}
\TextField[width=1em,charsize=7pt,maxlen=2]{Text}
\end{Form}
\end{document}
I am using Acrobat Reader DC and it is preferable that the answer to this question (which seems to be unlikely to be answered) has the following requirements:
- It should work on most possible viewers.
- If the input contains text or numbers mixed with text or any other character that is not number then the code should denied the input, that is, we should not be able to see how an "a" or "b1" or "bb" is written in our viewer but "11", "99", "01" etc.
Thanks!!