How can I open form as a parent child on button, or (preferably) link click?
I know about openForm method inside javascript framework, but by default it opens the form in new tab. I'd like to be able to open the form in a popup over existing form, and reload underlying form after child form submits the data. How can I do this?
Btw, I tried
var newFormUrl = '/sites/job1/Lists/Issues/fd_Item_New.aspx';
var uri = new URI(newFormUrl);
var url = uri.getLastPathSegment();
g_useDialogAlwaysList.push(url.toLowerCase());
$('.addnew a').attr('onclick', 'NewItem2(event, "' + newFormUrl + '");
But all this does is hide my related items views contents on the form, and the link itself still opens the form in new tab. Btw, I stated "addnew" as a css class for my link...
Thanks
Btw, I tried
var newFormUrl = '/sites/job1/Lists/Issues/fd_Item_New.aspx';
var uri = new URI(newFormUrl);
var url = uri.getLastPathSegment();
g_useDialogAlwaysList.push(url.toLowerCase());
$('.addnew a').attr('onclick', 'NewItem2(event, "' + newFormUrl + '");
But all this does is hide my related items views contents on the form, and the link itself still opens the form in new tab. Btw, I stated "addnew" as a css class for my link...
Thanks
- Dmitry Kozlov
- Site Admin
- Posts: 1524
- Joined: Thu Jun 07, 2012
Hello,
Please, use fd.openFormInDialog instead of fd.openForm. Get more detailed info in documentation section:
http://spform.com/documentation/js/manager
Please, use fd.openFormInDialog instead of fd.openForm. Get more detailed info in documentation section:
http://spform.com/documentation/js/manager
-
- Information
-
Who is online
Users browsing this forum: No registered users and 9 guests