Update Date and Time only on Request
i have text box updating date , time based on document level java:
var f = this.getfield("datetime");
f.value = util.printd("m/d/yyyy h:mm tt", new date());
how text box update 1 time unless request new update - button. please keep answer basic. lot!
change doc level script this:
var f = this.getfield("datetime");
if (f.valueasstring=="") updatedatefield();
function updatedatefield() {
var f = this.getfield("datetime");
f.value = util.printd("m/d/yyyy h:mm tt", new date());
}
then add following js command button's mouseup action:
updatedatefield();
More discussions in PDF Forms
adobe
Comments
Post a Comment