3 Replies Latest reply on Jul 17, 2009 12:27 PM by gkaiseril

    Custom Time Stamp Script for Acrobat

    lenakarachun

      Hello,

       

      I am trying to add a script to Acrobat form...

      Here is what I want the script to do:

      • When the user fill out the form and clicks sumbit (the form submits by email)
      • The script will put a custom stamp on the document displaying the date in dd/mm/yy format and time in hh:mm format (12 hour)

      I've searched and googled for it and cannot find anything that specific.

       

      Any help will be appreciated.

       

      Thanks!!!!

        • 1. Re: Custom Time Stamp Script for Acrobat
          gkaiseril MVP & Adobe Community Professional

          Do you want an Acrobat Dynamic stamp applied?

           

          If so, you will need this stamp installed on every user's system and perform some significant JavaScript for roation of the stamp as needed.

           

          If not, are you sumbitting to a web script page for processing, this method can return an FDF that has the date time stamp of the mailing.

           

          If you are using the client's email for the submission, then you can fill in a date time field prior to issuing the maill form, but be aware that the user can cancel the mail action within their mail client.

           

          // get the current date/time object
          var oNow = new Date();
          // create date time sring for sumbission
          var sSubDate = util.printd("dd/mmm/yyyy h:mm tt", oNow);
          // fillin field for date and time of sumission
          this.getField("SubmitDate").value = sSubDate;
          // additional code to submit the form

          • 2. Re: Custom Time Stamp Script for Acrobat
            lenakarachun Level 1

            I don't want to use Dynamic Stamp in Acrobat, as there are significant changes to be performed.

            To use the script that was provided, do I need to create a new field for the date. Or do I just insert this script before the "submit" script.

             

            Thank you so much for the help!

            • 3. Re: Custom Time Stamp Script for Acrobat
              gkaiseril MVP & Adobe Community Professional

              Yes you need to create a form field to receive the data before the form is saved and emailed.