Copy link to clipboard
Copied
Can someone help me to write script
I have a form field that I want to auto populate with System date+30 days to it.
Copy link to clipboard
Copied
Put this in the custom calculation script
var oneDayInMilliseconds = 24 * 60 * 60 * 1000;
var now = new Date();
event.value = util.printd("mmmm dd, yyyy", new Date(now.getTime()+(oneDayInMilliseconds*30)));
Copy link to clipboard
Copied
When exactly do you want your field to be updated?
When the PDF is opened?
Saved?
Closed?
When another field is filled-in or updated?
Find more inspiration, events, and resources on the new Adobe Community
Explore Now