These forums are now Read Only. If you have an Acrobat question, ask questions and get help from one of our experts.

Buttons

udayapadakandla
Registered: Oct 31 2006
Posts: 14

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!

My Product Information:
Acrobat Pro 8, Windows
thomp
Expert
Registered: Feb 15 2006
Posts: 4411
First you have to have fields for the time stamp and the note on the form.

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