How to use openForm()

rss

Posted by MES5464 - Oct 31 ’13 at 09:59

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

  • Dmitry Kozlov
    Dmitry Kozlov
    Admin
    Member for: 8 years 7 months 26 days
    #1 by Dmitry Kozlov Nov 1 ’13 at 01:26

    Hello,

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

     
    fd.openForm('/Lists/Custom/fd_Item_Edit.aspx');
    event.preventDefault();
    
  • MES5464
    Member
    Member for: 8 years 8 months 20 days
    #2 by MES5464 Nov 5 ’13 at 04:06

    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?

Displaying 1 to 2 of 2 messages