From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/1209 Path: main.gmane.org!not-for-mail From: "Haseloff, Lutz" Newsgroups: gmane.comp.tex.context Subject: AW: AW: Two more questions Date: Fri, 12 Nov 1999 14:19:54 +0100 Sender: owner-ntg-context@let.uu.nl Message-ID: <0F3313EC125AD311981100105AB3A75D107B04@N0795.mdf.fvbb.de> NNTP-Posting-Host: coloc-standby.netfonds.no Mime-Version: 1.0 Content-Type: text/plain X-Trace: main.gmane.org 1035392045 30856 80.91.224.250 (23 Oct 2002 16:54:05 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Wed, 23 Oct 2002 16:54:05 +0000 (UTC) Original-To: ntg-context@ntg.nl Xref: main.gmane.org gmane.comp.tex.context:1209 X-Report-Spam: http://spam.gmane.org/gmane.comp.tex.context:1209 > Did you enable interaction by state=start? > By default, context does reset a form > (otherwise acrobat has troubles with unitiated > fields). Also, the default is to go to the first page. > openaction={firstpage,ResetForm} > You can do a grep in the pdf file on resetform to check this. > Hans Hi Hans, I play with following file to get a field with the current date: (my first try with JS) \setupoutput [pdftex] \setuppapersize[S6][S6] \setupinteraction[state=start, color=red, openaction=ResetForm, closeaction=ExitViewer] \setupinteractionscreen[option=max] \setupcolors[state=start] \startJScode{Datum} { this.d = new Date(); event.value = util.printd("dd. mmmm yyyy", d); } \stopJScode \setupfield [DatumSetup] [frame=off,width=8cm,height=7mm,validate=JS(Datum)] \definefield [datum] [line] [DatumSetup] \starttext today is the: \raise-2.2mm\hbox{\field[datum]} \goto{Reset}[ResetForm] \stoptext when i open the pdf with acrobat reader the field is empty. i must click on the link with the same reference or fill something in the field and press enter. with acrobat exchange i found no openaction in the pdf. is there a smarter way to define such a date field? Lutz