Expand my Community achievements bar.

Lock date/time field upon submit

Avatar

Former Community Member

Does anybody know of a way to lock or flatten a calculated date/time field when the E-mail submit button is clicked?  I have a date/time field that automatically calculates, but it recalculates every time the form is opened so the date and time of submission by the original user is not retained.  Any solutions?

2 Replies

Avatar

Level 10

You probably placed your code in an event which gets executed every time you open the PDF.. Try placing the calculation code in the Send email button.

That way it can retain the value. You need to check whether you have checked the Preserve changes to Automatic..(check the screen shot below)..

https://acrobat.com/#d=DdcaswsjCu9LbY7hR-HfRQ

Thanks

Srini

Avatar

Former Community Member

this is the current scripting that I have

and

Where would you suggest putting the calculation code?

Sorry, I am quite a beginner, especially in the scripting realm...