Auto Populate Date on Event and then Lock Date to Prevent Updating
I have a need for the following.
A date field (FieldA) needs to be auto populated on the current date when the signature field (SignA) is populated. I wrote this code to accomplish this, and its placed in the Custom Calculation Script in the date field (FieldA). It works.
event.value=(this.getField("SignA").valueAsString=="")?"":
util.printd("m/d/yyyy",new Date());
There are 4 different signatures requried on this field, hence all 4 will have the same requirement.
However, I did not take into account that the form will be signed on different days. Once the first date is populated after the first signature, and a day(s) passes, when the form is modified, it recalcuates and updates the already populated dates to most current. I want to lock the date once SignA is signed and FieldA is calculated for the first time, with no further updates to that date. I hope this makes sense.
Thanks,
