Avatar

Level 10

Hi,

Copy the script out of the calculate event and place it in the docReady event. This event only fires once, when the form is opened and rendered. Then in the Object > Value palette make sure that the type is set to "Optional".

You will want to wrap the date line of script in an if statement to check that there isn't a date already in the field, otherwise the date the user entered will be automatically overwritten when the form is reopened.

There is an example here: https://acrobat.com/#d=QR1y1RYatwSaQAWa4-jLlA.

Hope that helps,

Niall