I have an Adobe form that automatically populates the date and time of a request and then is emailed (fdf) for fulfillment. When the recipient opens the form, the time changes to the current time. The code that I am using is:
this.getField("RequestDate").value = util.printd("m/d/yyyy HH:MM", new Date());
and it is in the custom calculation script on the Calculate tab. The ideal situation would be that all data sent becomes write protected once it is submitted, but I need the date/time to become static once they hit the submit button.
Would I have better luck using the Actions tab? If so, how?
Any suggestions for improving this situation will be greatly appreciated.
Software/Hardware used:
ASKED:
July 11, 2008 2:30 PM
UPDATED:
July 22, 2008 1:54 PM
I didn’t have the Javascripting reference so thanks for that.
I like the idea of of submitting being what triggers the date and time. The added benefit is that if it sits on a user’s desk for a while before submission, the time will be a more accurate reflection. I will see if I can make that work.
Thanks.