Highlighted

Help with custom calculation scripts please.

Explorer ,
Aug 19, 2020

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. 

TOPICS
Acrobat SDK and JavaScript, Create PDFs, Edit and convert PDFs, PDF forms

Views

73

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more

Help with custom calculation scripts please.

Explorer ,
Aug 19, 2020

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. 

TOPICS
Acrobat SDK and JavaScript, Create PDFs, Edit and convert PDFs, PDF forms

Views

74

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Aug 19, 2020 0
Most Valuable Participant ,
Aug 19, 2020

Copy link to clipboard

Copied

How are you saving it, exactly? How did you create it? Where are you viewing it?

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Aug 19, 2020 1
Explorer ,
Aug 19, 2020

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? 

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Aug 19, 2020 0
Most Valuable Participant ,
Aug 19, 2020

Copy link to clipboard

Copied

Yes, if you can do that it would be good.

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Aug 19, 2020 1
Explorer ,
Aug 19, 2020

Copy link to clipboard

Copied

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Aug 19, 2020 0
Most Valuable Participant ,
Aug 19, 2020

Copy link to clipboard

Copied

I don't see any calculated fields in this file.

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Aug 19, 2020 1
Explorer ,
Aug 19, 2020

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? 

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Aug 19, 2020 0
Most Valuable Participant ,
Aug 19, 2020

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?

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Aug 19, 2020 1
Explorer ,
Aug 20, 2020

Copy link to clipboard

Copied

No, I wasn't even aware of that command. lol 

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Aug 20, 2020 0
Most Valuable Participant ,
Aug 20, 2020

Copy link to clipboard

Copied

How did you create the fields?

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Aug 20, 2020 0
Explorer ,
Aug 20, 2020

Copy link to clipboard

Copied

In prepare form. 

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Aug 20, 2020 0
Most Valuable Participant ,
Aug 20, 2020

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.

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Aug 20, 2020 0
Explorer ,
Aug 20, 2020

Copy link to clipboard

Copied

I used the PDFescape to shrink it in size. That may have broke it? 

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Aug 20, 2020 0
Most Valuable Participant ,
Aug 20, 2020

Copy link to clipboard

Copied

Yes, very likely.

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Aug 20, 2020 0
Bob-Dole LATEST
Explorer ,
Aug 20, 2020

Copy link to clipboard

Copied

If I recopy and paste each code in. It works, until saved. Seems odd. 

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Aug 20, 2020 0