On 01 Aug 2014, at 13:30, Gerben Wierda <gerben.wierda@rna.nl> wrote:
[…]
I’ve tried to add this to my environment and product file, but even without using it, it ends in an error:

(/usr/local/texlive/2014/texmf-dist/tex/context/base/spec-tpd.mkii
specials        : loading definition file fdf
(/usr/local/texlive/2014/texmf-dist/tex/context/base/spec-fdf.mkii))
! Undefined control sequence.
l.5  {\doifcheckedpagestate
                           {#5}%
?

G

Hi Gerben,

I think you are using mkii, while the code sent by Hans and containing
\doifcheckedpagestate
is intended for use with mkiv.

Best regards: OK