I'm attempting to create a variation of the new Date variable in javascript for Livecycle that will allow me to create a current timestamp in HH:MM A on the click event of a button. I'd also like to bind this globally to multiple date/time fields that will then display the time respective buttons are clicked. I have completed this successfully using FormCalc "rawValue = Num2Time(Time(), TimeFmt(1))" but have most troubling come to find that FormCalc events are inoperable on the iPad (using PDF Expert) that users will utilize to complete the form. Javascript, I have learned, should work just fine. I am, however, unfamiliar with the scripting language.
I have been working on this for quite some time and would appreciate any assistance you're able to lend.
On Button Click Event
TextFieldName.rawValue = util.printd("HH:MM",new Date());
Thom Parker
The source for PDF Scripting Info
www.pdfscripting.com
Very Important - How to Debug Your Script