Skip to main content
johnm76703665
Participant
April 26, 2019
Question

Import Data to pdf fields - Run Javascript

  • April 26, 2019
  • 1 reply
  • 935 views

I have a form with many fields that have JavaScript actions.  I upload this form to our custom application and then generate this form from that application with data that is input in the application.  I have no problem with the import of that data.  However, the JavaScript does not run from import.

For example, there are check boxes on the PDF form, that have script tied to "mouse up".  If the check for that box is imported from the application, the script does not run.  It can only run the script when the check box is manually checked on the PDF.

I don't want to have to re-code the application every time there is a change to the pdf document.

Is there a way to edit the pdf to where it runs script when the check is imported to the pdf?

Thanks in advance!

This topic has been closed for replies.

1 reply

try67
Community Expert
Community Expert
April 26, 2019

No. You need to re-do the code. I recommend using a calculation script and then calling the calcluateNow method when opening the file.