These forums are now Read Only. If you have an Acrobat question, ask questions and get help from one of our experts.

Linking One Form to Another

harvebj
Registered: Nov 14 2007
Posts: 7

I am somewhat new to the Livecycle Designer software and have a technical question that I can't find a previous answer too while seearching this forum. I have created a form using Adobe Livecycle Designer 7.0. In this from I have a line of text telling the reader to check a checkbox if a certain type of test is required. I have created another form specific to this test. What I want to happen when the user clicks on the checkbox is that the other form opens up in another window, so that he can then fill that form out. I thought this would be a simple task in this software, but cannot for the life of me figure it out. Any help would be greatly appreciated!!

lkassuba
ExpertTeam
Registered: Jun 28 2007
Posts: 3636
Are you creating this form for use in Acrobat/Reader? If so, you could use the hyperlinking capability of Acrobat to open another form. To do this you can use the SetFocus command in LiveCycle. For complete details on this capability check out the following URL:
http://kb.adobe.com/selfservice/viewContent.do?externalId=333000&sliceId=1

Lori Kassuba is an AUC Expert and Community Manager for AcrobatUsers.com.

harvebj
Registered: Nov 14 2007
Posts: 7
Ikassuba,
Yes, I am creating the form for use in Acrobat/Reader. I have no problem inserting links into standard .pdf files, it is only the forms I create in Livecycle Designer that I have the problem with. The only difference I see between the two types of .pdf files is that those created with Livecycle contain interactive fields, whereas the standard .pdf files do not. When opening the form I created in Adobe Reader, the 'Link Tool' is grayed out and cannot be selected. That being said, I followed the link you provided and was able to get a link to a webpage to work properly using the code:
xfa.host.gotoURL( "http://www.cnn.com" , 0 ). However, I am still undable to figure out how to link to another .pdf file. I tried both:
xfa.host.gotoURL( "C:\Harvey\Decatur's PQR Master Form v00.pdf" , 1 )
and
xfa.host.setFocus("C:\Harvey\Decatur's PQR Master Form v00.pdf")
with no luck. Is this the proper code? Any more suggestions?
lkassuba
ExpertTeam
Registered: Jun 28 2007
Posts: 3636
If you're using xfa.host.gotoURL then you'll need to use a URL not pathname:
( "http://www.cnn.com/Master Form.pdf" , 0 )

If you're linking to a PDF not URL, you can use the following:
xfa.host.setFocus("FormName.PageName.FieldName")

Lori Kassuba is an AUC Expert and Community Manager for AcrobatUsers.com.

harvebj
Registered: Nov 14 2007
Posts: 7
Ikassuba,

I tried the code xfa.host.setFocus("FormName.PageName.FieldName") and was only able to get it to work while creating a link from one part of a form to another part of the SAME form (i.e. the 1st page to the 4th page of the same form). I am still unable to figure out a way to link from one .pdf file to another .pdf file. I may not have been clear up to now, but I am not trying to link within the same file, but instead from one file to another (i.e. from Test1.pdf to Test2.pdf). Any furhter suggestions?
lkassuba
ExpertTeam
Registered: Jun 28 2007
Posts: 3636
You can try using the Javascipt for launching a PDF in a browser in the Livecycle click event. For example:
app.launchURL("http://www.adobe.com/epaper/spotlights/acrfaa/pdfs/acrfaa.pdf", true);

True launches another browser window and false keeps it in the same window.

Lori Kassuba is an AUC Expert and Community Manager for AcrobatUsers.com.