openForm syntax

rss

Posted by schuess - Jun 12 ’14 at 08:50

What is the proper syntax if I want to use openForm(filename, queryParams) and pass an ID as a query param?

 

fd.openForm('fd_meetingMinutes_DisplayForm.aspx', ID:9);

fd.openForm('fd_meetingMinutes_DisplayForm.aspx', 9);

With ID as variable: fd.openForm('fd_meetingMinutes_DisplayForm.aspx', ID: myID);

 

What components are necessary to open a DisplayForm from a different list? and what would the syntax look like?

 

*Note: the two forms are in different lists!

  • schuess
    schuess
    Member
    Member for: 8 years 3 months 23 days
    #11 by schuess Jun 17 ’14 at 10:48

    SOLUTION!

     

    You’re opening a form of another list, so you have to reset List parameter:

    fd.openForm('/sites/mgh/Lists/MeetingMinutes/fd_meetingMinutes_DisplayForm.aspx', {ID:myID, List : ''} );

    ---

    Thank you,

    Dmitry Kozlov

    Forms Designer Team

     

    http://spform.com

Displaying 11 to 11 of 11 messages