Hi All,
I'm working with a javascript that populates today's date when the person enters in their initials in an adjacent field.
To provide some background:
My thinking is that the javascript checks to see if the initials field is not blank and if the initials field is not blank, populate the current field with today's date.
SA is the name of the field where the initials are entered
The javascript
var fld1 = this.getField("SA")
if (fld1 != null) {event.target.value = util.printd("yyyymmdd", new Date());}
The javascript experts will laugh as you know what I'm experiencing - Regardless of whether the SA field has text or not, the date populates.
If it helps...I placed the javascript in the Custom Calculation script field located in the Calculate Tab within Text Field Properties.
I'm using Adobe Acrobat 8.1.6/Windows
Thanks in advance to any and all who can provide guidance.
Ameet
the javaScript Pocket Reference by OReilly Media might be helpful.Plz check