[NTG-context] Issue with interactive checkboxes

Jan-Erik Hägglöf skrantajanneman at gmail.com
Mon May 23 13:11:29 CEST 2022


HI!

Tried to make a checklist in an interactive document.

The problem seems to be that all checks/uncecks in same click, not each individually.

Is there something wrong with my code?

See attached below

\setupinteraction[state=start]
\setupexternalfigures[location=global]
\usemodule[fields]
\definesymbol [yes] [{\externalfigure[check-mark-svgrepo-com.svg][conversion=mp]}]
\definesymbol [no] []


\setupfield
[setup 3]
[width=0.5cm, height=0.5cm,
rulethickness=1pt, corner=round, framecolor=red]


\definefield [check-me] [check] [setup 3] [yes,no] [no]

\define\chk{\field[check-me]}

\starttext

\chk
\blank[3cm]
\chk

\stoptext

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.ntg.nl/pipermail/ntg-context/attachments/20220523/075e0ad9/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: exempel1.pdf
Type: application/pdf
Size: 6502 bytes
Desc: not available
URL: <http://mailman.ntg.nl/pipermail/ntg-context/attachments/20220523/075e0ad9/attachment.pdf>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.ntg.nl/pipermail/ntg-context/attachments/20220523/075e0ad9/attachment-0001.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: check-mark-svgrepo-com.svg
Type: image/svg+xml
Size: 1370 bytes
Desc: not available
URL: <http://mailman.ntg.nl/pipermail/ntg-context/attachments/20220523/075e0ad9/attachment.svg>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.ntg.nl/pipermail/ntg-context/attachments/20220523/075e0ad9/attachment-0002.htm>


More information about the ntg-context mailing list