I am replicating a fillable/savable form from LiveCycle with LaTeX using \CheckBox
and \TextField
items. I would also like to replicate the pop-up calendar / datepicker feature. I am aware of the insDLJS
package which sounds like I could program one in JS, but does anyone know of a simpler method?
1 Answer
As mentioned in https://tex.stackexchange.com/a/488757/2388 there is an inbuilt date picker in recent adobe reader. The answer show how to use it with hyperref, so here as an alternative the code for l3pdffield-testphase. Notice that the javascript need an additional parentheses pair.
\DocumentMetadata{}
\documentclass[12pt]{article}
\usepackage{l3pdffield-testphase}
\begin{document}
Pick up a date:
\ExplSyntaxOn
\pdffield_textfield:n
{
name =mydate,
format ={(AFDate_FormatEx("dd.mm.yyyy");)},
keystroke ={(AFDate_KeystrokeEx("dd.mm.yyyy");)}
}
\ExplSyntaxOff
\end{document}
hyperref
package. The date picker is essentially a text field which when clicked opens a calendar / date picker; the selection is then entered as a formatted date in the text box. I am asking whether I need to learn JS to program one throughinsDLJS
or if there are alternatives?This package has become obsolete as of December 2020. Since December 2020, Adobe no longer supports Flash player
…