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