Expand my Community achievements bar.

Invoking external javascript file from xdp source

Avatar

Level 1

Is it possible to invoke an external javascript file from within the xdp source? I know it is possible to embed the javascript in the form.

If this is possible, would I be correct in assuming that this is also possible from pdf source?

Basically I am looking to show / hide buttons based on the status associated with a form at a given time in the flow. My understanding of PDFs is that the source cannot be edited once it has been created? If this is the case I was hoping that there could be code embedded that would call on the external file which would return the status of the letter. Based on the response buttons / fragments etc could be shown / hidden as required.

Feedback required asap please!

Thanks in advance.

1 Reply

Avatar

Former Community Member

You cannot call outside of the rendered form. So you have a couple of means to get information into the form. Merge dat aonto the form (in your case you can use a field as a flag and key off of that),or use Web Service call to check the status.

Hope that helps

Paul