Page 1 of 1
Open an InfoPath form on Button Click
Posted: 05 Nov 2015
by pselman
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
Re: Open an InfoPath form on Button Click
Posted: 06 Nov 2015
by dap53
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.
Re: Open an InfoPath form on Button Click
Posted: 09 Nov 2015
by rostislav
Add a button and add to it the following code (inside the OnClick editor of the button):
Code: Select all
fd.openForm('/Lists/MyList/MyForm.aspx');
or
Code: Select all
fd.openFormInDialog('/Lists/MyList/MyForm.aspx');
subsituting the URL as appropriate.
Re: Open an InfoPath form on Button Click
Posted: 23 Feb 2016
by MFatima
Hi,
I have successfully added a button that opens my link. How can i achieve that it opens the link a new window?
Thanks,
Re: Open an InfoPath form on Button Click
Posted: 24 Feb 2016
by rostislav
You can use this:
Code: Select all
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.