5 Replies Latest reply on Jul 18, 2012 3:42 PM by gkaiseril

    Combining Forms, where to put the Javascript code?

    Neil-Kentucky

      I have several forms I combine into a single PDF.  Several form fields are identical in each file.  I use Javascript to populate some of the data such as the current Date and Current Time.

       

      After combining the files, however, the javascript is completely gone.

       

      Here's what I use:

       

      getField("DateToday").value = util.printd("mm/dd/yyyy", new Date())

      getField("TimeNow").value = util.printd("h:MM tt", new Date())

       

      I have it placed in the "Document will Print" section under "Documenet Actions".

       

      Where do I put my code so that it doesn't get wiped out when i combine the files?