I have created a pdf certificate which is valid one year from the date received. I need the date to populate the first time the doc is opened and then not change. I have tried the javascript below in the page properties which gives the date perfectly. How can I make the date of that first event "stick" forever and not be user changeable?
var newdate = new Date();
var thisfieldis = this.getField("thedate");
var thedate = util.printd("d",newdate);
var themonth = util.printd("mmmm",newdate);
var theyear = util.printd("yyyy",newdate);
thisfieldis.value = themonth + " " + thedate + ", " + theyear ;
Thanks much
Be aware that this can't be considered secure, as there are ways to change the field value, but it will prevent accidental changes or casual attempts to change it.
George