Add new from Related Items


Posted by Hubbaroo - Apr 4 ’14 at 10:26

On the initial form to hijack the add new:

var cat = fd.field('Catagory').control().value();

var newFormUrl = '/sites/resources/Lists/Activity%20Updates/fd_Item_NewForm.aspx?Catagory=' + cat;

var uri = new URI(newFormUrl);

var url = uri.getLastPathSegment();


$('.ms-list-addnew a').eq(0).attr('onclick', 'NewItem2(event, "' + newFormUrl + '");return false;');


On the new form to get the parameter:

var cat = GetUrlKeyValue("Catagory");



I'm trying to pass additional parameters to the new form but getting nothing. I sure this worked in the past, maybe I'm wrong?


  • Dmitry Kozlov
    Dmitry Kozlov
    Member for: 8 years 7 months 25 days
    #1 by Dmitry Kozlov Apr 6 ’14 at 06:37

    Please, try JavaScript from the following comment:

Displaying 1 to 1 of 1 messages