Time and Date when saving a fillable form

I have created an order form for my company and I am having problems with creating a java script that will put the Date and Time at the top of the form only when it is saved. How would I go about this I have tried a few different scripts with no avail.
var ft = this.getField("Time_Saved");
ft.value = util.printd("HH MM ss", new Time());
var oNow = new Date();
var sSubDate = util.printd("mmm dd, yyyy", oNow );
this.getField("Invoice_Date").value = sSubDate;
// var f = this.getField("DatePrinted"); // field object
// f.display = display.noView; // only print the field
// f.value = "Printed on: " + util.printd("mmm dd, yyyy", new Date()); // // set the value of the field
// 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;
If someone is able to help me though this that would be great more or less what am i doing wrong?

A week? You should really try to learn a bit more core JavaScript if you plan to create more such scripts... Also, make sure you tick on the option in Acrobat to show the console on errors and warnings. You should see there something like this (when running the old code):
ReferenceError: Time is not defined
This immediately lets you know that something with that line is not correct...

Similar Messages

  • How can I set screen saver clock which show time and date when all screen is black. Other phones have this option but I didn't find on iphone. Pl guide.

    How can I set screen saver clock which show time and date when all screen is black. Other phones have this option but I didn't find on iphone. Pl guide.

    HA!  I figured the find my iphone out!!!!! You can have more than one icloud account in "Mail, Contacts and Calendars".  So my husband's & kids' phone icloud account under "settings, icloud "is their individual @me.com account.  Set it to everything you want EXCEPT Find My Iphone.  Then under "settings, mail/contacts/calendars" you set up both accounts (your @me.com which may already be there), then add another with the main appleID and enable ONLY Find My Iphone.  Now when any of us log into Find My Iphone from any device with our main apple ID for the app store, all the devices show up!!!! YIPPEE.  I made my own day!
    I think the message I got previously was because I hadn't disabled the find my iphone on the @me.com account first.

  • Time and date when the video was taken ???

    i burned my project allready but while watching it on tv i cannot see time and date when it was taken .. i could see it on my camcorder but not in my project on dvd. how do i put it there?
    thanx a lot.

    I have this question too.

  • Ipod touch always changes the time and date when synced

    Since I got my touch, even before any updates etc, every time I sync it the time and date changes, usually back about a week or so. Anyone else got this problem or any solution as its really annoying me. A cutting edge bit of kit that has practically every function that works so well and the clock and calendar cant keep time? weird....

    Not true in all cases, I updated to 2.0 and had 2 problems: One App had a Bug *NOT Apple`s fault*, and the second was another App ( again, not Apples fault ) that went back to home screen after opening. This was solved by a simple reset ( I have the first batch of Touches, 16 gb ). And the battery thing, I haven`t noticed it at all, I have an almost full charge, and have been using it for 4 days, never shut it down, only sleep mode when not in use.

  • How to know the time and date when someone empty trash?

    someone delete very important videos on my mac PC , i need to know the time and date of what happens on my pc for 2 days ago to can know who delete these files and when the trash being empty
    also, i tried very hard to recovery these videos by using Data rescue program but i found old videos instead of the last videos hasa been removed??? i don't know how???!!
    so can anyone help me please

    Open the Console app located in HD > Applications > Utilities
    Select System Log on the left.
    Type trash in the search fileld top right corner of that window.
    That should reveal the date and name of the file or files that were deleted but they cannot be extracted from there.

  • Lose form data when combining PDF fillable forms

    I would like to combine into one PDF document two completed form-fillable PDFs. The PDF forms have identical fields, but the data collected on the forms (from different users) is different, of course.
    When I add the second form to the PDF document containing the first one, the data from the second form is erased and replaced by the data from the first.
    So, I end up with a PDF document with two forms containing identical user data.
    I suspect Acrobat is freaked out because the forms contain the same field names or something. I know I can solve this by making a new PDF from the form-fillable PDF--flattening the layers, in Photoshop-speak. Is there another way to solve the problem?

    With Acrobat forms form fields with the same name and type will change together. This has how Acrobat forms have worked since they were introduced.

  • HT1338 Mac forgets time and date when battery runs flat

    My Mac Book Pro forgets time, date and network password when battery runs flat. My software is up to date. The computer is about three years, but surely it shouldn't be necessary to change battery every three years? I have seen others with problem, but no answer yet.

    Resetting your Mac's PRAM and NVRAM
    If resetting pram does resolve your issue - Apple/About This Mac/More Info/Hardware/Power/Battery Information - copy and paste the information here. Do not include any serial numbers.

  • Aargh! N73 still forgetting time and date when swi...

    I just updated to the latest firmware (3.0704.1.0.1) hoping that this would be fixed. Can someone from Nokia tell me if this is a widespread problem or just my phone!?

    Somebody else had the same problem a few days back.
    The advice was to take the phone to a service centre as the problem is probably related to whatever is powering the clock - probably a secondary battery like in a PC.

  • When creating a fillable form and saving it as a pdf, the default color of the data fields is a light blue. How do I change the color to something else that will copy better, e.g. a light yellow?

    When creating a fillable form and saving it as a pdf, the default color of the data fields is a light blue. How do I change the color to something else that will copy better, e.g. a light yellow?

    It's probably the fields highlight color of the application, which you can change via Edit - Preferences - Forms.

  • How To Include Current Time and Date in Form

    Does anyone know how I can include the time and date in the
    body of a form mailer? Our system allows the receiver of each
    submitted form to copy the body of the form entries and paste them
    into either Excel or FileMaker for database building. They would
    like to have the time and date also appear somewhere in the
    submitted body so they will not have to do a seperate copy/paste of
    the time and date seen in the header... I followed the javascript I
    found in the Adobe website and included it within the form, but
    when I ran a test nothing showed! Here is the form...
    Click
    Here to see the Form
    Thanks for your help! -D

    Can you not use when the email's timestamp?
    Also, in z7's script, beware the common mistakes, if you try
    to retype it - .getDate() gives the day of the month (1-31), but
    .getDay() gets the day of the week (1-7). To make it more
    confusing, .getMonth() gets the month (0-11), so you have to add
    one to make it human-readable. The script posted is correct, but I
    went round and round with my PC when I tried to do that the first
    time!

  • How do I keep the time and date stamp of my photo when exporting from iphoto

    Hi,
    I notice the time and date stamp changed when I exported the photos from iPhoto 11 to a external HDD.
    When I looked at the information about the exported photos on my external HDD the time and date changed to the time and date of when I exported the photos form iPhoto instead of keeping the time and date information of when the photo was taken as it appears in iPhoto.
    I thought the time and date stamp is in the meta data of the photo file and can't be changed, am I correct?
    Thanks,

    Kyzelios,
    How can view the meta data from "finder" or do I need a 3rd party app?
    "Get info" function only gives me the creation date which is the export date and time.

  • Why the time and date is not correct when I save a waveform in txt format, using Labview 6.1?

    I am using Labview 6.1 and my operation system is Windows 98. The date/time properties is configured in the Windows (time and date in the control panel is correct). I generated a waveform using Basic Function Generator.vi and saved this using the Export Waveforms to Spreadsheet File.vi. When I opened this file the date and time was wrong. Only the delta t was correct and it did not show the date neither the time, only a float number. How can I adjust the correct time?

    Actually, the date/time is correct, it is expressed as seconds since January 01, 1904.
    In order to print the string version of the date/time from your file, you will need to write a utility that converts the date/time to a string or series of strings in whatever format you wish. This can be done by reading the first line (I assume that is the line with the time on it), formatting the date/time into a string, and writing over this information in the file.
    The waveform VIs were meant to be used internally to read and write waveform data. Any use beyond that should require you to add formatting and other information/data as necessary.

  • TS3297 when I press the iTunes button on my ipod touch I get the message 'cannot connect to iTunes store' .  My wifi is working fine, I can connect to safari & you tube, no parental setting in place, and time and date are correct. Can anyone help please?

    When I press the iTunes button on my ipod touch I get the message 'cannot connect to iTunes store' .  My wifi is working fine, I can connect to safari & you tube, no parental setting in place, and time and date are correct. Can anyone help please? I have restored my ipod to factory settings and rest it.

    I also tried moving the date forward by a year and then moving it back to normal and it still doesn't work.  i can't find an automatic update of time zones on my itouch to turn this off.

  • My iphone 3gs has started showing the wrong time  and date. All was fine until this afternoon when it changed.  My apps have the right time and date. However the world clock is wrong. I have to turn off the automatic time setting to get the right time.

    My iphone is showing the wrong time and date. All was well until sometime this afternoon when it changed...  to Nov 5 (2 days prior to today), and about 9 hours and some minutes before the actual time.  The world clock for my time zone shows the same wrong date and time. My calender shows the same wrong date and time.  The phone can not find my time zone any more.   The only fix I found was to turn off the automatic setting for time.  What is  happening? Ideas?

    just sorted mine went to
    settings-mail,contacts,calender-timezone support
    then turned it off then on tapped time zone and typed london
    this did sort mine

  • Inserting current time and date in a form

    Feel silly here, but I can't seem to find a way to insert form fields that will display currnet time and date, I see where it can be done for a digital signature, but that's not what I need. This is for a client sign in sheet. I want to know what date and time the form is printed, without having to manually enter that data. Thanks.

    Actualy, looking around the web I found another Adobe forum where you answered another person's question about using a check box to populate a text field with the date, which is actually what I really need, as I want to be able to print the form with or without the date and time appearing. Here's the script you posted:
    // Mouse up script for check box
    {function () {
         // Get a reference to the text field
         var f = getField ("text");
         // Set the value of the text field
         if (event.target.value !== "off") {
              f.value = util.printd("mm/dd/yyy", newDate ());
              } else {
                    f.value = " ";
    I copied and pasted the code straight into the mouse up event for the check box, and then changed the text box name to the actuall name of the date text field, and the error I get is "too much recursion".

Maybe you are looking for

  • Transporting BPC 10 from Development to Production

    Hi all, I am working on a BPC 10 project and it is time for us to test in production. I am aware of two main routes to go from a Dev to Prod system, the first of which I attempted yesterday: 1. BW Transport - Set the environment offline - Log in to B

  • Printing problem with Extreme, but not with Express - HELP!!!

    Hi. I have a Hewlett-Packard hp LaserJet 3020. It works fine with my Airport Express but when I connect it to my Airport Extreme it wont work. The printer is on the list and the "printing" light on the printer is flashing when it is printing. But no

  • Clean Install System 8.5 - Desktop Menu and Get Info??

    Hello, I'm helping an older lady with a clean install of system 8.5, upgrading from 7.5.3. on a 6214CD Performa. (I'm mostly using 7.6). To my suprise, with the full install (not custom), I'm not seeing several things in the Desktop Pull down menu -

  • Information regarding BPS

    Hi Guys, I am an ABAPer and wanna (u can say i was asked to) learn som functional like BPS...can anyone plz help me out abt this "BPS".... is der any prior knowledgevreqd 2 learn dis? As dis is my 1st step towards Functional..plz help me out....also

  • Error Message no. RSBOLAP018  Encountered during Infomation Broadcasting

    Hi Gurus, While Doing Broadcasting a Report from Portal, the background job (in sm37) is failing with the following error: Message no. RSBOLAP018  -- Java system error: max no of 100 conversations exceeded / CPIC-CALL:'ThSAPCMRCV' : cmRc=17 thRc=450