Answered
Please excuse my ignorance on this topic. This is my first try at writing JavaScript and I am not having much luck. I tried to write two lines of script in the "Document JavaScript" of my form. I wanted to name my form and I want a field on the form to automatically show the current date when information is added to the form. This is the code that I have, but it doesn't seem to work -- function Name() {FormName = "FiveHundred"} and function CurrDate() {FiveHundredForm.Date_Completed.Value = (Date ());}
Any assistance you can provide would be greatly appeciated.
1. Every time the form is opened
2. Only the first time the form is opened
3. Whenever any field value changes in the form
4. At the time that the form data is submitted to a web server/email
5. When the form is saved
6. etc.
7. etc.
Also, is the name of your date field "Date_Completed"?
Finally, are you creating your form in Acrobat, or are you using LiveCycle Designer?
George