I would like to have a field that inputs the time when the form is opened. I am not sure how to do that using Javascript, any suggestions or pointers would be greatly appreciated!
That covers allot of territory. First, read Thom Parkers tutorial "Working with date and time in Acrobat JavaScript" http://www.acrobatusers.com/tech_corners/javascript_corner/tips/2006/date_time_part1/ . This should give you an idea about the various ways to process date and time. Next, you will need to determine if the time will be updated each time the form is opened not matter what or only if the form has not been previously completed, how to handle the time field if the form is reset, etc.
Some code and examples of initializing a date field upon opening a PDF are contained in "Example Acrobat JavaScripts" http://www.planetpdf.com/search_results.asp?words=date+javascript&search_general=general&search_pdf=pdf&imageField.x=31&imageField.y=11 .Hope this helps.
Some code and examples of initializing a date field upon opening a PDF are contained in "Example Acrobat JavaScripts" http://www.planetpdf.com/search_results.asp?words=date+javascript&search_general=general&search_pdf=pdf&imageField.x=31&imageField.y=11 .Hope this helps.
George Kaiser