Open an InfoPath form on Button Click
Add a button and add to it the following code (inside the OnClick editor of the button):
or
subsituting the URL as appropriate.
Code: Select all
fd.openForm('/Lists/MyList/MyForm.aspx');
Code: Select all
fd.openFormInDialog('/Lists/MyList/MyForm.aspx');
You can use this:
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.
Code: Select all
window.open("/Lists/list/fd_Item_EditForm.aspx?ID=2");
-
- Information
-
Who is online
Users browsing this forum: No registered users and 17 guests