Expand my Community achievements bar.

any ideia on this: open a new pdf in the same acrobat window.

Avatar

Level 6
Hello,



If in a pdf form we make a submit (or something similar) to a web link and return a new pdf, is it possible to open that new pdf instead of the one that make the submit call (open in the same acrobat window).



Thank you.
1 Reply

Avatar

Former Community Member
As long as you know the URL of where the new PDF file is going to be you can embed the response URL in the submit button.Try something this JS in the Submit button's "Mouse Up" action along with where ever you are planing to submit the Data:



app.launchURL("http://www.myCompanyServer.com/myFolder/myPDFs/myPDF.pdf");



If you are trying to do an HTML type return, I don't know if that's really possible.



Sabian