How to use openForm()

Discussions about Forms Designer for SharePoint 2013 / 2016 and Office 365.
Locked
MES5464
Posts: 94
Joined: Mon Aug 26, 2013

31 Oct 2013

I am trying to put a button on a Show form that will take the user to the IT Show Notes edit form. Why isn't this working?

openForm("http://share.showprg.com/Lists/IT Show Notes/fd_Item_Edit.aspx", {ID:2});

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

01 Nov 2013

Hello,

I'm using the following code and it seems it works as expected:

Code: Select all

fd.openForm('/Lists/Custom/fd_Item_Edit.aspx');
event.preventDefault();

MES5464
Posts: 94
Joined: Mon Aug 26, 2013

05 Nov 2013

Can we add additional parameters to the fd.openForm()?

Such as:

var shwname = fd.field('Show').control('data')['Title'];

fd.openForm('/Lists/GS Show Notes/fd_Item_New.aspx',{ID:nid, List: '8D3C4CBC-393A-4B34-A2FB-AC03D5C06C30', Source: window.location.href, ShowName:"\"" + shwname + "\""});

Where ShowName will be retrieved in the open form to populate a field.

How do you query the ShowName parameter in the open form?

Locked
  • Information
  • Who is online

    Users browsing this forum: No registered users and 7 guests