locked
Change Related List New Item URL RRS feed

  • Question

  • Hi all,

    I need to add a parameter to the "new item" link of a related list added to my form. Example: Add ID=2 to the querystring so that it passes the ID of 2 to the list. Using jQuery/JavaScript, how would I do this?

    Thanks,

    K.


    Personal Blog: http://thebitsthatbyte.com

    Thursday, August 7, 2014 6:05 PM

Answers

All replies

  • hi

    ID column is an internal column , filled by SharePoint

    You can't set it manually. What you can do it's to create you own custyom NEW_ID column, and populate it as you need ( based or not on ID column )


    Romeo Donca, Orange Romania (MCSE, MCITP, CCNA) Please Mark As Answer if my post solves your problem or Vote As Helpful if the post has been helpful for you.

    Thursday, August 7, 2014 8:03 PM
  • I did not plan to set it manually, just had that an example. The ID would be dynamic and I am able to grab it already from the field, but was wondering about how to edit the code for a SharePoint generated "new item" link so I can append this value in or change the entire URL to my desired link.

    Personal Blog: http://thebitsthatbyte.com

    Thursday, August 7, 2014 8:15 PM
  • aha, OK

    check this codeplex solution

    http://www.codeproject.com/Articles/194253/How-to-Customize-the-New-Item-form-to-take-paramet


    Romeo Donca, Orange Romania (MCSE, MCITP, CCNA) Please Mark As Answer if my post solves your problem or Vote As Helpful if the post has been helpful for you.

    • Marked as answer by Patrick_Liang Friday, August 15, 2014 10:47 AM
    • Unmarked as answer by Kelly Rusk Friday, August 15, 2014 4:46 PM
    • Marked as answer by Kelly Rusk Friday, August 15, 2014 4:47 PM
    Thursday, August 7, 2014 8:27 PM