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
Solved! Go to Solution.
Views
Replies
Total Likes
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");
Views
Replies
Total Likes
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
Views
Replies
Total Likes
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.
Chomp, I think that's about all you can do without using a trusted function.
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
Views
Replies
Total Likes
Watch your target version, I think that only works in 9+.
Views
Replies
Total Likes
Thanks Jono.
I will not be able to test this until Monday. I will post the results after I test.
Chomp
Views
Replies
Total Likes
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
Views
Replies
Total Likes
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
Views
Replies
Total Likes
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");
Views
Replies
Total Likes
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
Views
Replies
Total Likes
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.
Views
Replies
Total Likes
Views
Likes
Replies
Views
Likes
Replies