Date autofill with signature
I created a form with adobe that requires digital signatures from at least 3 people. Everything is fine until my auto fill script dates the signature. For some reason all the signatures will be dated to match the most recent signature. Here is my script:
Signature field 1:
var a = this.getField("PROVIDER SIGNATURE").value;
if( a > "0") {event.value = util.printd("yyyymmdd", new Date())} else {event.value = ""}
Signature field 2:
var b = this.getField("FLIGHT SURGEON SIGNATURE").value;
if( b > "0") {event.value = util.printd("yyyymmdd", new Date())} else {event.value = null}
Signature field 3:
var c = this.getField("MEMBER SIGNATURE").value;
if( c > "0") {event.value = util.printd("yyyymmdd", new Date())} else {event.value = null}
Signature field 4:
var d = this.getField("COMMANDER SIGNATURE").value;
if( d > "0") {event.value = util.printd("yyyymmdd", new Date())} else {event.value = null}
At least three of the four field have to be signed but if the Provider and the Soldier sign on 20160305 and the Commander signs three days later, it changes the dates for the Provider and Soldiers signatures to the same date as the Commander.
