<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">I’ve tested on my Mac OS Monterey 12.3.1 and the same phenomena as firefox it also is on google chrome.<div class=""><br class=""></div><div class=""><br class=""><div><br class=""><blockquote type="cite" class=""><div class="">24 maj 2022 kl. 10:18 skrev Jan-Erik Hägglöf <<a href="mailto:skrantajanneman@gmail.com" class="">skrantajanneman@gmail.com</a>>:</div><br class="Apple-interchange-newline"><div class=""><meta http-equiv="Content-Type" content="text/html; charset=utf-8" class=""><div style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">HI Again!<div class=""><br class=""></div><div class="">I discovered what went wrong, such a silly syntax error, here comes a working code:</div><div class=""><br class=""></div><div class=""><div class="">\setupinteraction[state=start]</div><div class=""><br class=""></div><div class="">\definesymbol[yes][{\externalfigure[check-mark-svgrepo-com.svg][conversion=mp]}]</div><div class="">\definesymbol[no][]</div><div class=""><br class=""></div><div class="">\newcount\chk</div><div class="">\def\checkmark{%</div><div class="">\global\advance\chk by 1</div><div class="">\setupfield[setup1][width=0.5cm, height=0.5cm,rulethickness=1pt, corner=round, framecolor=red]%</div><div class="">\definefield[checkme\the\chk][check][setup1][yes,no][no]%</div><div class="">\field[checkme\the\chk]%</div><div class="">}</div><div class=""><br class=""></div><div class="">\starttext</div><div class=""><br class=""></div><div class="">\checkmark\</div><div class=""><br class=""></div><div class="">\checkmark\</div><div class=""><br class=""></div><div class="">\checkmark\</div><div class=""><br class=""></div><div class="">\stoptext</div><div class=""><br class=""></div><div class="">Sorry to bother the list but maybe it is helpful for someone.</div><div class=""><br class=""></div><div class="">Regards</div><div class=""><br class=""></div><div class="">/Jan-Erik</div><div class=""><br class=""><blockquote type="cite" class=""><div class="">24 maj 2022 kl. 08:08 skrev Jan-Erik Hägglöf <<a href="mailto:skrantajanneman@gmail.com" class="">skrantajanneman@gmail.com</a>>:</div><br class="Apple-interchange-newline"><div class=""><meta http-equiv="Content-Type" content="text/html; charset=utf-8" class=""><div style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">I’ve tried this<div class=""><br class=""></div><div class=""><div class="">\setupinteraction[state=start]</div><div class=""><br class=""></div><div class="">\definesymbol[yes][{\externalfigure[check-mark-svgrepo-com.svg][conversion=mp]}]</div><div class="">\definesymbol[no][]</div><div class=""><br class=""></div><div class="">\newcount\chk</div><div class="">\def\chk{%</div><div class="">\global \advance \chk by 1</div><div class="">\setupfield[setup1][width=0.5cm, height=0.5cm,rulethickness=1pt, corner=round, framecolor=red]%</div><div class="">\definefield[checkme\the\chk][check][setup1][yes,no][no]%</div><div class="">\field[checkme\the\chk]%</div><div class="">}</div><div class=""><br class=""></div><div class="">\starttext</div><div class=""><br class=""></div><div class="">\chk</div><div class=""><br class=""></div><div class="">\chk</div><div class=""><br class=""></div><div class="">\chk</div><div class=""><br class=""></div><div class="">\stoptext</div><div class=""><br class=""></div><div class="">But it gives the error ” You can’t use \global after \advance”</div><div class=""><br class=""></div><div class="">But this example works fine</div><div class=""><br class=""></div><div class=""><pre class="lang-tex s-code-block" style="margin-top: 0px; margin-bottom: 0px; padding: var(--su12); border: 0px; font-variant-ligatures: normal; font-variant-numeric: inherit; font-variant-east-asian: inherit; font-stretch: inherit; line-height: var(--lh-md); font-family: var(--ff-mono); font-size: var(--fs-body1); vertical-align: baseline; box-sizing: inherit; width: auto; max-height: 600px; overflow: auto; border-radius: var(--br-md); color: var(--highlight-color); overflow-wrap: normal; orphans: 2; widows: 2; text-decoration-thickness: initial;"><code class="language-latex hljs" style="margin: 0px; padding: 0px; border: 0px; font-style: inherit; font-variant-ligatures: inherit; font-variant-position: inherit; font-variant-caps: inherit; font-variant-numeric: inherit; font-variant-alternates: inherit; font-variant-east-asian: inherit; font-stretch: inherit; line-height: 19.5px; font-family: inherit; font-size: var(--fs-body1); vertical-align: baseline; box-sizing: inherit; white-space: inherit;"><span class="hljs-keyword" style="margin: 0px; padding: 0px; border: 0px; font-style: inherit; font-variant-ligatures: inherit; font-variant-position: inherit; font-variant-caps: inherit; font-variant-numeric: inherit; font-variant-alternates: inherit; font-variant-east-asian: inherit; font-stretch: inherit; line-height: inherit; font-family: inherit; font-size: 13px; vertical-align: baseline; box-sizing: inherit; color: var(--highlight-keyword);">\setupinteraction</span>[state=start]

<span class="hljs-keyword" style="margin: 0px; padding: 0px; border: 0px; font-style: inherit; font-variant-ligatures: inherit; font-variant-position: inherit; font-variant-caps: inherit; font-variant-numeric: inherit; font-variant-alternates: inherit; font-variant-east-asian: inherit; font-stretch: inherit; line-height: inherit; font-family: inherit; font-size: 13px; vertical-align: baseline; box-sizing: inherit; color: var(--highlight-keyword);">\newcount</span><span class="hljs-keyword" style="margin: 0px; padding: 0px; border: 0px; font-style: inherit; font-variant-ligatures: inherit; font-variant-position: inherit; font-variant-caps: inherit; font-variant-numeric: inherit; font-variant-alternates: inherit; font-variant-east-asian: inherit; font-stretch: inherit; line-height: inherit; font-family: inherit; font-size: 13px; vertical-align: baseline; box-sizing: inherit; color: var(--highlight-keyword);">\clozecount</span>
<span class="hljs-keyword" style="margin: 0px; padding: 0px; border: 0px; font-style: inherit; font-variant-ligatures: inherit; font-variant-position: inherit; font-variant-caps: inherit; font-variant-numeric: inherit; font-variant-alternates: inherit; font-variant-east-asian: inherit; font-stretch: inherit; line-height: inherit; font-family: inherit; font-size: 13px; vertical-align: baseline; box-sizing: inherit; color: var(--highlight-keyword);">\def</span><span class="hljs-keyword" style="margin: 0px; padding: 0px; border: 0px; font-style: inherit; font-variant-ligatures: inherit; font-variant-position: inherit; font-variant-caps: inherit; font-variant-numeric: inherit; font-variant-alternates: inherit; font-variant-east-asian: inherit; font-stretch: inherit; line-height: inherit; font-family: inherit; font-size: 13px; vertical-align: baseline; box-sizing: inherit; color: var(--highlight-keyword);">\mycloze</span>{<span class="hljs-comment" style="margin: 0px; padding: 0px; border: 0px; font-style: inherit; font-variant-ligatures: inherit; font-variant-position: inherit; font-variant-caps: inherit; font-variant-numeric: inherit; font-variant-alternates: inherit; font-variant-east-asian: inherit; font-stretch: inherit; line-height: inherit; font-family: inherit; font-size: 13px; vertical-align: baseline; box-sizing: inherit; color: var(--highlight-comment);">%</span>
  <span class="hljs-keyword" style="margin: 0px; padding: 0px; border: 0px; font-style: inherit; font-variant-ligatures: inherit; font-variant-position: inherit; font-variant-caps: inherit; font-variant-numeric: inherit; font-variant-alternates: inherit; font-variant-east-asian: inherit; font-stretch: inherit; line-height: inherit; font-family: inherit; font-size: 13px; vertical-align: baseline; box-sizing: inherit; color: var(--highlight-keyword);">\global</span> <span class="hljs-keyword" style="margin: 0px; padding: 0px; border: 0px; font-style: inherit; font-variant-ligatures: inherit; font-variant-position: inherit; font-variant-caps: inherit; font-variant-numeric: inherit; font-variant-alternates: inherit; font-variant-east-asian: inherit; font-stretch: inherit; line-height: inherit; font-family: inherit; font-size: 13px; vertical-align: baseline; box-sizing: inherit; color: var(--highlight-keyword);">\advance</span> <span class="hljs-keyword" style="margin: 0px; padding: 0px; border: 0px; font-style: inherit; font-variant-ligatures: inherit; font-variant-position: inherit; font-variant-caps: inherit; font-variant-numeric: inherit; font-variant-alternates: inherit; font-variant-east-asian: inherit; font-stretch: inherit; line-height: inherit; font-family: inherit; font-size: 13px; vertical-align: baseline; box-sizing: inherit; color: var(--highlight-keyword);">\clozecount</span> by 1
  <span class="hljs-keyword" style="margin: 0px; padding: 0px; border: 0px; font-style: inherit; font-variant-ligatures: inherit; font-variant-position: inherit; font-variant-caps: inherit; font-variant-numeric: inherit; font-variant-alternates: inherit; font-variant-east-asian: inherit; font-stretch: inherit; line-height: inherit; font-family: inherit; font-size: 13px; vertical-align: baseline; box-sizing: inherit; color: var(--highlight-keyword);">\definefield</span>[uniqcloze<span class="hljs-keyword" style="margin: 0px; padding: 0px; border: 0px; font-style: inherit; font-variant-ligatures: inherit; font-variant-position: inherit; font-variant-caps: inherit; font-variant-numeric: inherit; font-variant-alternates: inherit; font-variant-east-asian: inherit; font-stretch: inherit; line-height: inherit; font-family: inherit; font-size: 13px; vertical-align: baseline; box-sizing: inherit; color: var(--highlight-keyword);">\the</span><span class="hljs-keyword" style="margin: 0px; padding: 0px; border: 0px; font-style: inherit; font-variant-ligatures: inherit; font-variant-position: inherit; font-variant-caps: inherit; font-variant-numeric: inherit; font-variant-alternates: inherit; font-variant-east-asian: inherit; font-stretch: inherit; line-height: inherit; font-family: inherit; font-size: 13px; vertical-align: baseline; box-sizing: inherit; color: var(--highlight-keyword);">\clozecount</span>][line]<span class="hljs-comment" style="margin: 0px; padding: 0px; border: 0px; font-style: inherit; font-variant-ligatures: inherit; font-variant-position: inherit; font-variant-caps: inherit; font-variant-numeric: inherit; font-variant-alternates: inherit; font-variant-east-asian: inherit; font-stretch: inherit; line-height: inherit; font-family: inherit; font-size: 13px; vertical-align: baseline; box-sizing: inherit; color: var(--highlight-comment);">%</span>
  <span class="hljs-keyword" style="margin: 0px; padding: 0px; border: 0px; font-style: inherit; font-variant-ligatures: inherit; font-variant-position: inherit; font-variant-caps: inherit; font-variant-numeric: inherit; font-variant-alternates: inherit; font-variant-east-asian: inherit; font-stretch: inherit; line-height: inherit; font-family: inherit; font-size: 13px; vertical-align: baseline; box-sizing: inherit; color: var(--highlight-keyword);">\field</span>[uniqcloze<span class="hljs-keyword" style="margin: 0px; padding: 0px; border: 0px; font-style: inherit; font-variant-ligatures: inherit; font-variant-position: inherit; font-variant-caps: inherit; font-variant-numeric: inherit; font-variant-alternates: inherit; font-variant-east-asian: inherit; font-stretch: inherit; line-height: inherit; font-family: inherit; font-size: 13px; vertical-align: baseline; box-sizing: inherit; color: var(--highlight-keyword);">\the</span><span class="hljs-keyword" style="margin: 0px; padding: 0px; border: 0px; font-style: inherit; font-variant-ligatures: inherit; font-variant-position: inherit; font-variant-caps: inherit; font-variant-numeric: inherit; font-variant-alternates: inherit; font-variant-east-asian: inherit; font-stretch: inherit; line-height: inherit; font-family: inherit; font-size: 13px; vertical-align: baseline; box-sizing: inherit; color: var(--highlight-keyword);">\clozecount</span>]<span class="hljs-comment" style="margin: 0px; padding: 0px; border: 0px; font-style: inherit; font-variant-ligatures: inherit; font-variant-position: inherit; font-variant-caps: inherit; font-variant-numeric: inherit; font-variant-alternates: inherit; font-variant-east-asian: inherit; font-stretch: inherit; line-height: inherit; font-family: inherit; font-size: 13px; vertical-align: baseline; box-sizing: inherit; color: var(--highlight-comment);">%</span>
}

<span class="hljs-keyword" style="margin: 0px; padding: 0px; border: 0px; font-style: inherit; font-variant-ligatures: inherit; font-variant-position: inherit; font-variant-caps: inherit; font-variant-numeric: inherit; font-variant-alternates: inherit; font-variant-east-asian: inherit; font-stretch: inherit; line-height: inherit; font-family: inherit; font-size: 13px; vertical-align: baseline; box-sizing: inherit; color: var(--highlight-keyword);">\starttext</span>

Frogs have four <span class="hljs-keyword" style="margin: 0px; padding: 0px; border: 0px; font-style: inherit; font-variant-ligatures: inherit; font-variant-position: inherit; font-variant-caps: inherit; font-variant-numeric: inherit; font-variant-alternates: inherit; font-variant-east-asian: inherit; font-stretch: inherit; line-height: inherit; font-family: inherit; font-size: 13px; vertical-align: baseline; box-sizing: inherit; color: var(--highlight-keyword);">\mycloze</span><span class="hljs-keyword" style="margin: 0px; padding: 0px; border: 0px; font-style: inherit; font-variant-ligatures: inherit; font-variant-position: inherit; font-variant-caps: inherit; font-variant-numeric: inherit; font-variant-alternates: inherit; font-variant-east-asian: inherit; font-stretch: inherit; line-height: inherit; font-family: inherit; font-size: 13px; vertical-align: baseline; box-sizing: inherit; color: var(--highlight-keyword);">\ </span>and two eyes.
Frogs have four <span class="hljs-keyword" style="margin: 0px; padding: 0px; border: 0px; font-style: inherit; font-variant-ligatures: inherit; font-variant-position: inherit; font-variant-caps: inherit; font-variant-numeric: inherit; font-variant-alternates: inherit; font-variant-east-asian: inherit; font-stretch: inherit; line-height: inherit; font-family: inherit; font-size: 13px; vertical-align: baseline; box-sizing: inherit; color: var(--highlight-keyword);">\mycloze</span><span class="hljs-keyword" style="margin: 0px; padding: 0px; border: 0px; font-style: inherit; font-variant-ligatures: inherit; font-variant-position: inherit; font-variant-caps: inherit; font-variant-numeric: inherit; font-variant-alternates: inherit; font-variant-east-asian: inherit; font-stretch: inherit; line-height: inherit; font-family: inherit; font-size: 13px; vertical-align: baseline; box-sizing: inherit; color: var(--highlight-keyword);">\ </span>and two eyes.
Frogs have four <span class="hljs-keyword" style="margin: 0px; padding: 0px; border: 0px; font-style: inherit; font-variant-ligatures: inherit; font-variant-position: inherit; font-variant-caps: inherit; font-variant-numeric: inherit; font-variant-alternates: inherit; font-variant-east-asian: inherit; font-stretch: inherit; line-height: inherit; font-family: inherit; font-size: 13px; vertical-align: baseline; box-sizing: inherit; color: var(--highlight-keyword);">\mycloze</span><span class="hljs-keyword" style="margin: 0px; padding: 0px; border: 0px; font-style: inherit; font-variant-ligatures: inherit; font-variant-position: inherit; font-variant-caps: inherit; font-variant-numeric: inherit; font-variant-alternates: inherit; font-variant-east-asian: inherit; font-stretch: inherit; line-height: inherit; font-family: inherit; font-size: 13px; vertical-align: baseline; box-sizing: inherit; color: var(--highlight-keyword);">\ </span>and two eyes.
Frogs have four <span class="hljs-keyword" style="margin: 0px; padding: 0px; border: 0px; font-style: inherit; font-variant-ligatures: inherit; font-variant-position: inherit; font-variant-caps: inherit; font-variant-numeric: inherit; font-variant-alternates: inherit; font-variant-east-asian: inherit; font-stretch: inherit; line-height: inherit; font-family: inherit; font-size: 13px; vertical-align: baseline; box-sizing: inherit; color: var(--highlight-keyword);">\mycloze</span><span class="hljs-keyword" style="margin: 0px; padding: 0px; border: 0px; font-style: inherit; font-variant-ligatures: inherit; font-variant-position: inherit; font-variant-caps: inherit; font-variant-numeric: inherit; font-variant-alternates: inherit; font-variant-east-asian: inherit; font-stretch: inherit; line-height: inherit; font-family: inherit; font-size: 13px; vertical-align: baseline; box-sizing: inherit; color: var(--highlight-keyword);">\ </span>and two eyes.

<span class="hljs-keyword" style="margin: 0px; padding: 0px; border: 0px; font-style: inherit; font-variant-ligatures: inherit; font-variant-position: inherit; font-variant-caps: inherit; font-variant-numeric: inherit; font-variant-alternates: inherit; font-variant-east-asian: inherit; font-stretch: inherit; line-height: inherit; font-family: inherit; font-size: 13px; vertical-align: baseline; box-sizing: inherit; color: var(--highlight-keyword);">\stoptext</span></code></pre><div class=""><br class=""></div><div class="">From </div><div class=""><br class=""></div><div class=""><a href="https://tex.stackexchange.com/questions/560042/how-to-create-unique-clozes-in-context-in-a-pdf-that-users-can-type-in" class="">https://tex.stackexchange.com/questions/560042/how-to-create-unique-clozes-in-context-in-a-pdf-that-users-can-type-in</a></div></div><div class=""><br class=""><blockquote type="cite" class=""><div class="">24 maj 2022 kl. 07:44 skrev Jan-Erik Hägglöf <<a href="mailto:skrantajanneman@gmail.com" class="">skrantajanneman@gmail.com</a>>:</div><br class="Apple-interchange-newline"><div class=""><div class="">Thank you, unfortunately it has no effect. Even if I make a macro, still it is the same field.<br class=""><br class=""><blockquote type="cite" class="">23 maj 2022 kl. 21:59 skrev Pablo Rodriguez via ntg-context <<a href="mailto:ntg-context@ntg.nl" class="">ntg-context@ntg.nl</a>>:<br class=""><br class="">On 5/23/22 13:11, Jan-Erik Hägglöf via ntg-context wrote:<br class=""><blockquote type="cite" class="">HI!<br class=""><br class="">Tried to make a checklist in an interactive document.<br class=""><br class="">The problem seems to be that all checks/uncecks in same click, not each<br class="">individually.<br class=""><br class="">Is there something wrong with my code?<br class=""></blockquote><br class="">Hi Jan-Erik,<br class=""><br class="">you basically put the same field twice.<br class=""><br class="">Add something like:<br class=""><br class=""> \definefield [check-you] [check] [setup 3] [yes,no] [no]<br class=""><br class=""> \define\chka{\field[check-you]}<br class=""><br class=""> \chka<br class=""><br class="">Checks will be different then.<br class=""><br class="">I hope it helps,<br class=""><br class="">Pablo<br class="">___________________________________________________________________________________<br class="">If your question is of interest to others as well, please add an entry to the Wiki!<br class=""><br class="">maillist : <a href="mailto:ntg-context@ntg.nl" class="">ntg-context@ntg.nl</a> / <a href="http://www.ntg.nl/mailman/listinfo/ntg-context" class="">http://www.ntg.nl/mailman/listinfo/ntg-context</a><br class="">webpage  : <a href="http://www.pragma-ade.nl/" class="">http://www.pragma-ade.nl</a> / <a href="http://context.aanhet.net/" class="">http://context.aanhet.net</a><br class="">archive  : <a href="https://bitbucket.org/phg/context-mirror/commits/" class="">https://bitbucket.org/phg/context-mirror/commits/</a><br class="">wiki     : <a href="http://contextgarden.net/" class="">http://contextgarden.net</a><br class="">___________________________________________________________________________________<br class=""></blockquote><br class=""></div></div></blockquote></div><br class=""></div></div></div></blockquote></div><br class=""></div></div></div></blockquote></div><br class=""></div></body></html>