Open a form from another form

R

Roberto

Hi everyone and thanks in advance,

I have deployed two infopath's forms. One of them, I had published it
to a form library in Sharepoint and It works like a form template, so I can
fill all th edata and works fine, from all computers I have tried.

The other form, I have upload it to the Sharepoint to another form
library, and It works fine.

The problem is that the first form has a button which I need to open the
second form. So, I push the button, and I get an error telling me that the
form must be in local.

How can I open the second form from the first form without problems?

Thanks a lot
 
S

Scott L. Heim [MSFT]

Hi,

How are you trying to launch the other form? For instance, I published a
form to one Sharepoint library and can use the following JScript code on
the click event of a button to open a new form from the template in the 2nd
Sharepoint library:

Application.XDocuments.NewFromSolution("http://server/MySecondLib/Forms/temp
late.XSN");

I hope this helps!

Scott L. Heim
Microsoft Developer Support

This posting is provided "AS IS" with no warranties, and confers no rights.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top