Expand my Community achievements bar.

Don’t miss the AEM Skill Exchange in SF on Nov 14—hear from industry leaders, learn best practices, and enhance your AEM strategy with practical tips.

How does one get a simple URL link onto the Designer Form?

Avatar

Former Community Member
Greetings:



Thank heavens for small favors, kudos to Adobe for Designer and its basic email functionality.



One annoying thing, I am finding it impossible to put a simple link on the Designer Form. Likewise, if I open the form in Acrobat, the link icon on the toolbar is greyed and unavailable, so I cannot select text and turn it into a link.



I have found that I can make a bookmark with the form open in Acrobat and make that a link to a URL, but I cannot specify the initial view to show the bookmarks open, so there is a very good chance this bookmark/link will never be seen.



The HTTP button help states:



"The HTTP submit button operates like a standard button object with these settings:



Control Type set to Submit

Submit Format set to URL-Encoded Data

Submit To URL set to use the http: protocol."



which doesn't sound like it's meant to function like a simple link, and trying it anyway I get an error message that the url is incorrect.



Any ideas on this?



regards,



stevenjs

__________________________

"I am but an egg."

--Stranger in a Strange Land
6 Replies

Avatar

Former Community Member
There are two things that might work. The first is just using a text object in your form. When I used an email alias in a text object, when the form is opened in Reader/Acrobat, the text automatically got changed to a hyperlink for me. The other thing is to put a button on a form and have some script on the OnClick event that opens another browser window with the URL you want (I think it is something like gotoURL...



Dave

Avatar

Former Community Member
the code I got was this



xfa.host.gotoURL("http://www.yoursite.com",0);



And it worked like a charm!



JimP

Avatar

Former Community Member
Thank you Dave and James!



Unfortunately, I am not a programmer, so I need some more explicit advice.



Dave, if I go to Insert > Text, the object window does not have a field for entering a url, so I don't understand how this option might be used.



Likewise, if I insert > button, the object window offers an "Appearance" field, "Control Type" radio buttons (regular-submit-execute), a "Presence" field and a "Locale" field. I don't see how or where I would put an OnClick script on the button.



James,



Great! I'd never know what sort of script to use in this environment, but how do you attach it to a button??



I should think Adobe would have thought of this and addressed it in their Help. I mean, you get to a form, you might like to go somewhere else after filling it out, or instead of filling it out. Since the browser "Back" button does not work in Reader, you're essentially trapped in the form.



regards,



stevenjs

__________________________

"I am but an egg."

--Stranger in a Strange Land

Avatar

Former Community Member
Hi,

i m trying to open a URL which is trying to open a browser window.

i m using gotoURL("link",1)on the click event of a button in adobe designer 7.0,but the problem i m facing is tht when i m opening my PDF in a browser window and clicking the button for URL,it is opening the URL in the same window of PDF document itself.

Avatar

Former Community Member
Parul,



I'd be happy to have your problem.



How does your script read? Like this: onClick="gotoURL("myURL.html", 1)" ?



Please show me what you are using to get it to open in the same window.



Where do you put the script?? There is no field for a script or URL for buttons in Designer. (I am not a programmer.) Are you putting it in the code view? Where? Can you show me what the complete button with script looks like in code view?



From what I understand, there is no way to open a new browser window from a regular PDF, never mind a Designer Form PDF. But I found one highly ingenious trick that will do it.



Opening URL in new window from Acrobat.



The Code for the first HTML page.





















Code for the second HTML page which forces the new document to stay on top.


















Avatar

Former Community Member
I guess one can't paste html in these posts, here's the code, minus all the html tags, and the brackets for the meta tag, title tag and body tag.



Opening URL in new window from Acrobat.



The Code for the first HTML page.



meta http-equiv="refresh" content="2; URL=Original.pdf"

title New Page 1 title



BODY onload="window.open('startNewPDF.htm', 'newWindow')"



Code for the second HTML page which forces the new document to stay on top.



meta http-equiv="refresh" content="3; URL=New.pdf"

title New Page 1 title



body onBlur="setTimeout('self.focus()',2500)"



By the way, I figured out where to apply javascript to a button. Being new to Designer, I did not see that slender script interface at the top.



James' xfa.host.gotoURL("http://www.yoursite.com",0); does indeed work like a charm. I just selected the button, selected Javascript instead of FormCalc, Selected "click" from the event dropdown, and pasted in xfa.host.gotoURL("http://www.yoursite.com",0); (changing the URL of course).



regards,



stevenjs

__________________________

"I am but an egg."

--Stranger in a Strange Land