I need help with this task: On a Form (LiveCycle), I created a button titled "Click to add a note". When clicked, the button should print a time stamp in a Textfield not too far away and let the user enter a text note adjacent to that time stamp. How can I accomplish this ? Thanks!
To assign a time stamp use something like this in the button script
timeStamp.rawValue = util.printd("HH:MM:ss", new Date());
This works, but note that it uses Acrobat JavaScript methods, not XFA JavaScript. I'm sure there is a XFA method, i.e. a picture clause, but you'll have to look this up in the XFA scripting documents.
Thom Parker
WindJack Solutions
[url=http://www.windjack.com]www.windjack.com[/url]
The Acrobat JavaScript Reference, Use it Early and Often
[url=http://www.adobe.com/devnet/acrobat/[/url]
Thom Parker
The source for PDF Scripting Info
www.pdfscripting.com
Very Important - How to Debug Your Script