I use LaTeX to create a fillable PDF document. How can I detect that a \CheckBox has been clicked?
It seems to react only to onfocus={...}, not to onclicked={...} or onchanged{...}.
Do I need to register an EventListener in an insDLJS environment?
Code:
\documentclass{article}
\usepackage{hyperref}
\begin{document}
\begin{Form}
\CheckBox[name=mytestbox,onchange={app.alert('Hello');},onclick={app.alert('Hello2');}]{Test CheckBox}
\end{Form}
\end{document}
I took a look into the eform documentation. There doesn't seem to be an onclick for the \CheckBox element either. Did I overlook something?
– MPW Nov 05 '18 at 15:15\checkBox[\AA{\AAMouseDown{\JS{app.alert("Mouse Down!")}}}]{myCheck}{10bp}{10bp}{On}works fine for me with eforms. – Ulrike Fischer Nov 05 '18 at 15:44