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

Discussions about Forms Designer for SharePoint 2013 / 2016 and Office 365.
Locked
eedoh
Posts: 37
Joined: Tue Feb 11, 2014

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

User avatar
Dmitry Kozlov
Site Admin
Posts: 1524
Joined: Thu Jun 07, 2012

26 Feb 2014

Hello,

Please, use fd.openFormInDialog instead of fd.openForm. Get more detailed info in documentation section:
http://spform.com/documentation/js/manager

Locked
  • Information
  • Who is online

    Users browsing this forum: No registered users and 17 guests