Expand my Community achievements bar.

Guidelines for the Responsible Use of Generative AI in the Experience Cloud Community.
SOLVED

Linking to help documents on a common drive

Avatar

Level 5

Good Day All;

I am trying to figure out how to add a link on a form that will take a user to help files. On the version I am running there does not appear to be a way to create a “HTML” link. Trust me, I have looked at all the dropdowns. I am running version 8.05.02.

I have tried using the HTML submit button, but that give me the error, “cannot display the webpage”.

I took a look at the XML source for this button and was thinking it might have something to do with the

<value>

<text>submit</test>

This is what I would like to do.

The user clicks on a button (or hyper link) that will open a document that resides on a common drive.

Anny help would be appreciated.

Chomp

1 Accepted Solution

Avatar

Correct answer by
Level 10

I just tried xfa.host.gotoURL() and it works but the file needs to be a pdf or it will try and make it a pdf.

xfa.host.gotoURL("file:///c/test.pdf");

View solution in original post

11 Replies

Avatar

Level 5

Well, I got it working. I would like to know if this is the best way to be doing this.

I am using the HTML Submit button and the code looks like this.

 

<submit format="urlencoded" textEncoding="UTF-8" target="folder name on common drive"/>

The document is a Microsoft Word document.

Thanks all

Avatar

Level 4

Well, in my version (9.??) I can add static text to my form, and while editing the text directly in the form design pane I can highlight a portion of the static text, right click and select "...Insert Hyperlink".

To be clear, this only works for static text or captions... it won't work for fillable text fields.

Let me know if you don't have the option to insert a hyperlink by right clicking on selected text (you should, even in your version).  If you don't, then I could try walking you through how to alter the xml of a text field to include a hyperlink. This is a bit dangerous as you run the risk of corrupting your entire form. Hopefully e won't have to bother with this method as it's not pretty.

Avatar

Level 10

Chomp, I think that's about all you can do without using a trusted function.

http://forums.adobe.com/message/1359940#1359940

Avatar

Level 5

Thanks everyone.

I sent my “work” stuff home to see what I could do. And… On the version I am running at home, 8.2.1 I can right click and add a hyper link. I guess I will be doing some of this at home. It will be a 24 hour turn around … I guess….

Thanks again everyone.

Chomp

Avatar

Level 10

Watch your target version, I think that only works in 9+.

Avatar

Level 5

Thanks Jono.

I will not be able to test this until Monday. I will post the results after I test.

Chomp

Avatar

Level 5

Jono, you were correct. It does not work with the version of Acrobat pro I have installed. It does however work with the version of Adobe reader the users have installed.

I will look at the code and see what happens if I manually change  the code. If not, there will be a 24 hour turn around if I need to make any changes.

Thanks again for the help

Chomp

Avatar

Level 5

Well, it started out ok. 1 small problem. When I resave the form in a low version, I the hyper links are no longer working.. It was worth a try

Avatar

Correct answer by
Level 10

I just tried xfa.host.gotoURL() and it works but the file needs to be a pdf or it will try and make it a pdf.

xfa.host.gotoURL("file:///c/test.pdf");

Avatar

Level 5

Thank you very Jono; I was able to "borrow" some server space. I created an HTML document and had it point to the page. Worked like a charm.

Thanks again Jono

Chomp

Avatar

Level 10

If you're going to a website you can also use app.launchURL() (it doesn't support files though).

Not sure if one's better than the other.