0 Replies Latest reply on Nov 24, 2008 6:44 AM by (Theodoros_Giannakis)

    ID number

      I am using the script below when form open to add a number.
      It's work fine but the only problem that I have any time when I open the form the ID number changes!
      Is it possible the number to be the same as the first time when we enter data?

      var CurrDate = new Date();
      ID.rawValue = (1 + CurrDate.getMonth()) + "/" + CurrDate.getDate() + "/" + CurrDate.getFullYear()
      ID.rawValue = "ECF-"+(Math.floor((new Date()) / 1000) )%1000000000;

      I am using LiveCycle Designer
      Thanks