1 Reply Latest reply on Jan 13, 2012 4:16 PM by try67

    Unique ID number


      I have a script (see below) that I’m using to generate a unique number in the “NC No” field when opening the form. It works okay except that it is 13 digits. I’d like it to be six digits. How can the code be modified to accomplish this?

      var f = this.getField("NC No");
      var g = f.value;
      if (g == 0)
      var dt;
      Today = new Date();
      dt = Today.getTime();
      this.getField("NC No").value = dt;