Skip to main content
Navids
Participant
Dec 1, 2016 6:26 PM UTC
Question

Date Autoppopulate

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.

This topic is closed to new replies. Start a new post to keep the conversation going.

2 replies

Inspiring
Dec 1, 2016 9:56 PM UTC

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?

Translate
Joel Geraci
Community Expert
Community Expert
Dec 1, 2016 8:43 PM UTC

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)));

Translate