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

Popular posts from this blog

Thread: gpg: Conflicting Commands

Adobe Acrobat Pro , Terminal Server Use

when i try using AE CC 3d camera tracker after the first step it says "Analysis solve failed." help?