Help with custom calculation scripts please.
Copy link to clipboard
Copied
My form uses a bunch of custom calculation scripts and it works as desired, but once I save it, those custom calculation scripts stop functionaing. Can someone please explain to me how to make it so, regardless of saving the PDF document, the custom calculation scripts continue to function.
Copy link to clipboard
Copied
How are you saving it, exactly? How did you create it? Where are you viewing it?
Copy link to clipboard
Copied
How are you saving it, exactly? Either via CTRL S or file | save.
How did you create it? You helped me with some of the scritping.
Where are you viewing it? In Adobe Acrobat DC.
Would it be easyest to temp upload it for you to take a look at?
Copy link to clipboard
Copied
Yes, if you can do that it would be good.
Copy link to clipboard
Copied
Try this link please:
https://filebin.net/jzorlc39adidkx6c
Copy link to clipboard
Copied
I don't see any calculated fields in this file.
Copy link to clipboard
Copied
Odd, most of the boxus starting from: Number and Street Address and below almost all have them, all based on what is selected from Dropdown1?
Copy link to clipboard
Copied
The code is there, but you'll notice that no fields appear in the Set Fields Calculation Order dialog, which means that something is wrong with the file. Did you at any point edit the code using the Edit All JavaScripts command, by any chance?
Copy link to clipboard
Copied
No, I wasn't even aware of that command. lol
Copy link to clipboard
Copied
How did you create the fields?
Copy link to clipboard
Copied
In prepare form.
Copy link to clipboard
Copied
That's fine. The issue might be with the file itself, then. I see that it was created using something called PDFEscape, which is an online service. My guess is it did not do a very good job of creating the PDF file.
I would try creating the file from scratch in Acrobat. For example by inserting it as the background of a new file, and then adding the fields to it again. It will take some work, but it will probably result in a better file at the end.
Copy link to clipboard
Copied
I used the PDFescape to shrink it in size. That may have broke it?
Copy link to clipboard
Copied
Yes, very likely.
Copy link to clipboard
Copied
If I recopy and paste each code in. It works, until saved. Seems odd.

