How can I open form as a parent child on button, or (preferably) link click?


Posted by eedoh - Feb 25 ’14 at 12:11

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();

$('.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...


Displaying 1 to 1 of 1 messages