Copy link to clipboard
Copied
Hi there! Hoping to find some help or a different way of getting this task done.
We have a PDF that needs a way to link out to a web page with unique parameters filled from the PDF fields.
Right now we have a button that uses JavaScript but it won't open in major browsers and will only work if the PDF is opened with a PDF reader.
However, a plain text URL opens regardless of what program the PDF is opened in. Is there a way to create a plain text link that will pull in variables from the PDF fields?
Copy link to clipboard
Copied
If you want it to be dynamic you have to use a script.
Copy link to clipboard
Copied
Hi,
can you share the javascript code that you're using with the button?
Copy link to clipboard
Copied
Hey! Thanks for the response. Below is a shorten version (less variables) of the code I'm using for the button.
var d = this.getField("ifleetSchedDate").value;
var i = this.getField("ifleetJobInvoice").value;
app.launchURL("https://www.WEBSITEURL.com/down-payment/?d="+d+"&i="+i, true);
Copy link to clipboard
Copied
Your code seems fine. The only issue might be you'll need to escape special characters so they can be included in the URL.
Copy link to clipboard
Copied
The button works fine when the document is opened in a PDF reader but we're trying to find a solution for something other that a button. The button will not work in a browser but a plain text link will. I don't think it's actually possible but we're looking for a way to add the URL parameters to the end of a plain text link.
Copy link to clipboard
Copied
MODIFIED REPLY
I think the link I posted earlier was not working.
here is another thread with possible similar workarounds:
You may try that using the Adobe PDF Open Parameters reference for additional guidance and see if it helps.
use this link instead to download:
Copy link to clipboard
Copied
Thanks for the suggestion! Would this option be used for opening the PDF itself? I don't see a way to open external links inside the PDF in the document you've attached.
Copy link to clipboard
Copied
What browser does you use?
Copy link to clipboard
Copied
We've tested it in Chrome, Firefox, and Microsoft Edge.
Copy link to clipboard
Copied
This browers doesn't use Adobe software.
Copy link to clipboard
Copied
I figured that was the case. The JavaScript is the issue here, correct?
Copy link to clipboard
Copied
If you want it to be dynamic you have to use a script.
Copy link to clipboard
Copied
That was my fear -- thank you!
Copy link to clipboard
Copied
in the following thread :
https://community.adobe.com/t5/acrobat-reader-mobile/links-to-embedded-pdfs-not-working-on-mobile/m-... I annexed another thread with a possible solution that was voted as best answer back then posted by JR_ Boulay.
I am not sure, if as you said earlier this is possible
Get ready! An upgraded Adobe Community experience is coming in January.
Learn more