Copy link to clipboard
Copied
Is there a simple way to create the following calcualtion in an interactive pdf -
(Text Field A) + (Text Field B) - (Text Field C) = (Text Field D)
Thanks
Jack
Copy link to clipboard
Copied
"I've just discovered that the calculation does work but only if there are no spaces in the 'TextFieldD' name."
Blank spaces and dots must be escaped using a backslash, like this:
Text\ Field\ A + Text\ Field\ B - Text\ Field\ C = Text\ Field\ D
Copy link to clipboard
Copied
Copy link to clipboard
Copied
Thanks for the link. I've just discovered that the calculation does work but only if there are no spaces in the 'TextFieldD' name. See... and I can spell 'calculation' properly too! : )
Copy link to clipboard
Copied
You might also be interested in this article, which covers writing simple JavaScript calculations:
https://www.pdfscripting.com/public/How-to-Write-a-Basic-PDF-Calculation-Script.cfm
Copy link to clipboard
Copied
"I've just discovered that the calculation does work but only if there are no spaces in the 'TextFieldD' name."
Blank spaces and dots must be escaped using a backslash, like this:
Text\ Field\ A + Text\ Field\ B - Text\ Field\ C = Text\ Field\ D
Get ready! An upgraded Adobe Community experience is coming in January.
Learn more