4 Replies Latest reply on Jan 16, 2014 12:37 PM by try67

    Help finishing, new Date().valueOf();

    Harris21804

      I searched a lot on the internet yesterday to no avail. I created a form and have a text field named "InvoiceNumber". I wanted a script that would create an invoice number and found  - new Date().valueOf();. This was exactly what I was looking for as I had used something similar in Livecycle but I don't know how to put that script in the form so it generates the number in my text field when the form is opened.

       

      I found where you click "pages" on the side bar, right click on the form page, click on page properties, go to action, and then set up a script for page open. I'm guessing this is where I would put the above script but if this is the case how do I tell the script to put the generated number in the "InvoiceNumber" field? Any help would be greatly appreciated.