Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Plain Text Link With Parameters

New Here ,
Dec 12, 2019 Dec 12, 2019

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?

TOPICS
Create PDFs , PDF forms
2.5K
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
1 ACCEPTED SOLUTION
Community Expert ,
Dec 13, 2019 Dec 13, 2019

If you want it to be dynamic you have to use a script.

View solution in original post

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Dec 13, 2019 Dec 13, 2019

Hi,

 

 

can you share the javascript code that you're using with the button?

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Dec 13, 2019 Dec 13, 2019

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);

 

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Dec 13, 2019 Dec 13, 2019

Your code seems fine. The only issue might be you'll need to escape special characters so they can be included in the URL.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Dec 13, 2019 Dec 13, 2019

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.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Dec 13, 2019 Dec 13, 2019

 

MODIFIED REPLY

 

I think the link I posted earlier was not working.

 

here is another thread with possible similar workarounds:

https://stackoverflow.com/questions/18462054/how-to-use-pdf-open-parameter-e-g-fith-in-chrome-firefo... 

 

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:

 

 

https://www.google.com/url?sa=t&source=web&rct=j&url=https://www.adobe.com/content/dam/acom/en/devne... 

 

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Dec 13, 2019 Dec 13, 2019

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.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Dec 13, 2019 Dec 13, 2019

What browser does you use?

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Dec 13, 2019 Dec 13, 2019

We've tested it in Chrome, Firefox, and Microsoft Edge.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Dec 13, 2019 Dec 13, 2019

This browers doesn't use Adobe software.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Dec 13, 2019 Dec 13, 2019

I figured that was the case. The JavaScript is the issue here, correct?

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Dec 13, 2019 Dec 13, 2019

If you want it to be dynamic you have to use a script.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Dec 13, 2019 Dec 13, 2019
LATEST

That was my fear -- thank you!

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Dec 13, 2019 Dec 13, 2019

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

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines