How to use openForm()
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});
openForm("http://share.showprg.com/Lists/IT Show Notes/fd_Item_Edit.aspx", {ID:2});
- Dmitry Kozlov
- Site Admin
- Posts: 1524
- Joined: Thu Jun 07, 2012
Hello,
I'm using the following code and it seems it works as expected:
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();
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?
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?
-
- Information
-
Who is online
Users browsing this forum: No registered users and 7 guests