Date field populates with today's date when Signature signed via sigpad
Hello,
I'm able to populate today's date to a single field by inserting this script to the Signature field.
this.getField("Datefield1").value = util.printd ("m/d/yyyy", new Date());
How can I do an "OR" to the above script so I can insert 5 fields? Reason being is the naming convention of the date field can be five different names.
Datefiled1
Datefiled2
Datefiled3
Datefiled4
Datefiled5
Instead of going into the script and edit the Datefield, I just want the script to work for any of the five.
I tired this but no luck....
this.getField(("Datefield1")||("Datefield2")).value = util.printd ("m/d/yyyy", new Date());
Thank you
Ed
