Set Text Field Default Value Current Date
Thanks for taking the time to read my question.
I can't seem to figure out how to set a Tex Fields default value to the current date. Is there a way to do this?
Thanks,
Brad
Thanks for taking the time to read my question.
I can't seem to figure out how to set a Tex Fields default value to the current date. Is there a way to do this?
Thanks,
Brad
I just put
var f = this.getField("Today");
f.value = util.printd("mm/dd/yyyy", new Date());
In the Custom calculation script: field under the Calculate tab for the properties for the text field and it seems to work now... Is that the best way to do it?
Brad
No, because the script will only get triggered when some other field value changes. It will not update when the document is opened until the user changes some field value.
Already have an account? Login
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.