This content has been marked as final. Show 9 replies
Did you get any error message, like 'date is not defined'?
The correct code is:
var TodayDate = this.getField("Today");
TodayDate.value = util.printd("mm/dd/yyyy", new Date());
Thank you for your response... But I still could not get it to work... I am a rocky in PDF programming I put the script under Validate Tab "Run custom validation script:" and Calculate Tab under "Custom calculation script:" and I could not get it to work... I think I am putting it in wrong place... Please guide me where do I need to put this script to make it to work... By the way is there any self learning course "Web site/CD/DVD" for PDF scripting
anywhere you can refere me too please?
No but I changed the date to Date still I could not get it to work... I think I am putting the script in wrong place... I response to another gentleman I responded where I am putting my script...
Is the field name "TodayDate" or "Today" ?
Displaying the current Date, http://www.planetpdf.com/developer/article.asp?ContentID=displaying_the_current_date&gid= 6197
Documentation available from Adobe:
Acrobat SDK; http://www.adobe.com/devnet/acrobat/
Acrobat FDF Toolkit: http://www.adobe.com/devnet/acrobat/fdftoolkit.html
PDF Reference: http://www.adobe.com/devnet/pdf/pdf_reference.html
The above sites include additional links to other PDF information.
Adobe Acrobat Bible series by Ted Padova
Adobe Acrobat Tips and Tricks by Donna L. Baker
Extending Acrobat Forms with JavaScirpt by John Deubert
Creating Dynamic Forms with Adobe LiveCycle Designer by J. P. Terry
Adobe Sponsored forums:
Acrobat User-to-User forums: http://www.adobeforums.com/cgi-bin/webx/.3bbeda8b/
Acrobat User Community: http://www.acrobatusers.com/
Planet PDF Forums: http://forum.planetpdf.com/wb/default.asp
Other PDF Sites:
Planet PDF: http://www.planetpdf.com/
Windjack Solutions: http://www.windjack.com/
Ted's Homepage: http://www.west.net/~ted/index.html
Abracadabra PDF: http://www.abracadabrapdf.net/index.php?lng=en
D. P. Story (Acrotex): http://www.acrotex.net.
PDF Zone: http://www.pdfzone.com/
Field name is TodayDate...
It is TodayDate
Then change the field name in: