var v = +this.getField("Counter").valueAsString; this.getField("Counter").value = util.printf("%06d", (v+1)); However, it's not going to work correctly if you put it on a website because the value is changed on the local copy of the f...
var v = +this.getField("Counter").valueAsString; this.getField("Counter").value = util.printf("%06d", (v+1)); However, it's not going to work correctly if you put it on a website because the value is changed on the local copy of the f...