Copy link to clipboard
Copied
I have a form that I want to place the current date in the date field when you open the form. Once the form is saved and I open it two days later, I do not want to have the date field reset to the new current date. I want it to stay static but allow me to manually change it if I want. How to do this and where do I write it?
Thank you in advance.
Copy link to clipboard
Copied
Place the date when the field is empty.
Copy link to clipboard
Copied
Hi
Place this script as a document level Javascript
if (this.getField("DateField").value == null || this.getField("DateField").value == "") {
this.getField("DateField").value = util.printd("yyyy-mm-dd", new Date());
}
Copy link to clipboard
Copied
Copy link to clipboard
Copied
Get ready! An upgraded Adobe Community experience is coming in January.
Learn more