How can I open form as a parent child on button, or (preferably) link click?
Posted: 25 Feb 2014
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