Am 2017-03-14 um 18:44 schrieb Pablo Rodriguez <oi...@gmx.es>:

> Text is red and border is blue. These are the defaults set in
> http://source.contextgarden.net/tex/context/modules/mkiv/m-fields.mkiv.
> 
> There you have the validation script, but I’m afraid this is Greek to me.

But guessing from your homepage you understand Greek ;)


Am 2017-03-14 um 18:57 schrieb Pablo Rodriguez <oi...@gmx.es>:

> Does it make any sense to have a module that doesn’t retain the content
> of the fill-in fields?

No ;)

> How should I define the new \fillinfield command?
> Would it work removing validation from the command? I’m sorry, I’m not
> running Windows and I have no way of testing it. Besides the fact that
> JavaScript is beyond my knowledge.

\setupinteraction[state=start]
>    \usemodule[fields]
>    \definefieldcategory
>      [fillinfield]
>      [n=1024,
>       height=\strutht,
>       depth=\strutdp,
>       align=middle,
>       color=red,
>       fieldframecolor=blue,
>       fieldbackgroundcolor=white,
>       validate=]
>    \setupinteraction[state=start]
>    \starttext
>    This is a \fillinfield[name]{text that defines field length}.
>    \stoptext

Yes, that works. You can leave out most of the parameters.

> It works fine with evince (it retains the contents of the fill-in
> field). But I need to know whether this works in Windows.

It works with evince because that probably doesn’t run JavaScript functions 
from PDFs.


Greetlings, Hraban
---
http://www.fiee.net
http://wiki.contextgarden.net
GPG Key ID 1C9B22FD

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

Reply via email to