4 Replies Latest reply on Mar 25, 2011 5:14 AM by kellyjaye1

    click field to show time, but when clicked off, it goes to 00:00

    kellyjaye1 Level 1

      Here is the javascript Im using...

       

      var f = this.getField("InvoiceNumber"); f.value = util.printd("mmddyyHHMM", new Date());

       

      The idea is to click on a particular field and the date and time appears (just the numbers, no slashes or anything) which it does perfectly.  The weird problem though is once i click on something else on the same document, the hours and minutes go straight to 0000 but the month, day and year all stay current.  I click back onto the field and the hour and minutes reappear!  What is causing this?  I cant see anything that is making this happen :-(