Copy link to clipboard
Copied
This form is about to drive me insane.
I want the form to auto populate a date 30 days in the future from the current date when opened. How can I make this happen?
Copy link to clipboard
Copied
Use something like this code as a doc-level script (NOT inside a function):
var d = new Date();
d.setDate(d.getDate()+30);
this.getField("FutureDate").value = util.printd("dd/mm/yyyy", d);
Copy link to clipboard
Copied
BLESS YOU
I was very close with my code, so I guess I must be learning something?