Skip to main content
Participating Frequently
November 20, 2017
Question

conga and javascript

  • November 20, 2017
  • 1 reply
  • 2145 views

hello,

I have conga updating fields on the my pdf template.  After conga, the JavaScript on the template should execute on the conga updates.

Conga will update 3 check boxes and the java script should use the conga updates to update the 3 check boxes.

This topic has been closed for replies.

1 reply

Thom Parker
Community Expert
Community Expert
November 20, 2017

JavaScript executes in response to an event, and only in a viewer with an enabled JavaScript engine. So, what is the exact process for this update? And where is this JavaScript located?

Thom Parker - Software Developer at PDFScriptingUse the Acrobat JavaScript Reference early and often
Brij12345Author
Participating Frequently
November 21, 2017

Hello thom,

For example,

i have 2 checkboxes: checkbox1 and checkbox2

conga will update checkbox1 after conga updated checkbox1, the JavaScript should update checkbox2.

i have put the Javascript in a text field in the template in the calculate section (personalised script) for the textbox.

Joel Geraci
Community Expert
Community Expert
November 21, 2017

You're probably going to need to add "this.calculateNow();" to a document level script so that the form will recalculate field values when it's first opened.  As Thom said, without an event to trigger the JavaScript, it won't run. That said, since you're using Conga, your appearance of your PDF won't be reliable unless your recipients open it in a JavaScript capable viewer. Most are not.