Open an InfoPath form on Button Click

rss

Posted by pselman - Nov 5 ’15 at 07:06

Hi,

 

I'm wanting to open up a particular Info Path form from a button within a form. Can you advise if this is possible and if so how?

 

Thanks

 

Paul

  • dap53
    Member
    Member for: 3 years 9 months 13 days
    #1 by dap53 Nov 6 ’15 at 10:48

    Instead of using button you can simply add Hyperlink with in the form as we use it for word file. But the link must be of browser based form. Cient based forms will not work.

     

  • rostislav
    rostislav
    Moderator
    Member for: 4 years 3 months 14 days
    #2 by rostislav Nov 9 ’15 at 05:26

    [#1]:

    Add a button and add to it the following code (inside the OnClick editor of the button):

    fd.openForm('/Lists/MyList/MyForm.aspx');
    

    or

    fd.openFormInDialog('/Lists/MyList/MyForm.aspx');
    

    subsituting the URL as appropriate.

  • MFatima
    Member
    Member for: 3 years 8 months 16 days
    #3 by MFatima Feb 23 ’16 at 02:23

    Hi,

    I have successfully added a button that opens my link. How can i achieve that it opens the link a new window?

    Thanks,

     

  • rostislav
    rostislav
    Moderator
    Member for: 4 years 3 months 14 days
    #4 by rostislav Feb 24 ’16 at 05:40

    [#3]:

    You can use this:

    window.open("/Lists/list/fd_Item_EditForm.aspx?ID=2"); 

    However, whether the page is opened in a new window or tab is up to the user's browser settings. Also, the popup may get blocked by the browser.

Displaying 1 to 4 of 4 messages