8 Replies Latest reply: May 15, 2012 12:34 PM by yenguru RSS

    Inserting automatic time field in forms

    yenguru Community Member

      I know how to add a date field, but I would also like to add a time field.

       

      I have used the following javascript in the page properties of the page containing the date field

       

      var f = this.getField("Today");
      f.value = util.printd("mmm/d/yyyy  HH:MM tt", new Date());

       

      And I am able to get the date but the time field does not change from the time when the form was first created. 

       

      Any help ???