How to open a subform in Infopath 2010 - InfoPath Dev
in

InfoPath Dev

Use our Google Custom Search for best site search results.

How to open a subform in Infopath 2010

Last post 10-10-2012 05:29 PM by tashatstanwell. 4 replies.
Page 1 of 1 (5 items)
Sort Posts: Previous Next
  • 06-08-2011 08:28 AM

    • helmss01
    • Not Ranked
    • Joined on 06-08-2011
    • Arkansas
    • Posts 2

    How to open a subform in Infopath 2010

    I am working in Infopath 2010 with Sharepoint 2010.  I have a form built on a sharepoint list and need to open a subform ( second form on another sharepoint list)  when a user clicks a button.  How do I open the subform in Infopath2010?

  • 06-13-2011 11:30 AM In reply to

    Re: How to open a subform in Infopath 2010

     You can use InfoPath's hyperlink control.

    Ernesto Machado
    Qdabra® Software/ InfoPathDev.com
    The InfoPath Experts – Streamline data gathering to turn process into knowledge.™


  • 08-03-2011 10:55 AM In reply to

    Re: How to open a subform in Infopath 2010

    I have the same question but I would like to give the users the option of opening a second form on exit. 

    For example there is a question at the end of the form "Do you want to open form B?" Next to it two buttons, Yes & No.  They select No the form closes.  They select yes and the original form closes and form B opens. 

    This can be done with code in a IP form but how do you do it in a browser form?

  • 08-03-2011 04:51 PM In reply to

    Re: How to open a subform in Infopath 2010

    Is the second form new or a form that already exists? Out-of-box, InfoPath has the NewFromTemplate action that will open a new form and you can just set a condition on a rule with that action to only do it if the checkbox is Yes.

    If it's an existing form, Ernesto's suggestion can be used to show-hide a link based on your yes-no, but if you need to launch it, the only solution is qRules v3.3 with the new OpenUrlInBrowser command.

    You would add a submit button with a rule that has a submit action and another rule with a close action.

    Between these rules, add another rule with an action that sets qRules command to OpenUrlInBrowser with the parameters of the XML. On this rule set the condition to check yes-no.

    One caveat is that this does not work in the browser. Just the InfoPath Filler. Limitation is a security one in the browser.

    qRules v3.3 comes out any day now ...

    Patrick Halstead
    Project Manager at Qdabra
  • 10-10-2012 05:29 PM In reply to

    Re: How to open a subform in Infopath 2010

    Hi Ernesto,

     Can you open the form in a dialog box using the hyperlink?  I've tried the following without success (for obvious reasons! but I tried anyway)

    <a href="BLOCKED SCRIPTvar options=SP.UI.$create_DialogOptions(); options.url=&#39;http://servername/ourtools/lists/listname/item/newifs.aspx&#39;;options.height = 700;void(SP.UI.ModalDialog.showModalDialog(options))"></a>

    Filed under: ,
Page 1 of 1 (5 items)
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.