Related documents with support of quick upload - passing value to parent form


Posted by charles267 - Feb 25 ’16 at 10:03

The following article ( discusses how to drag and drop a document and automatically associate the two via an established lookup column.  What we are trying to do now is to take the absoluate URL of the newly uploaded document and insert it into a text box in the "parent" form.   How can we take a value of the newly created item and use it in the "parent" form? Can you please assist?



  • rostislav
    Member for: 6 years 8 months 16 days
    #1 by rostislav Feb 26 ’16 at 06:08


    Do you want the URL to the actual document or to its Edit/View/Display form?

    If you're using the related items control in the client-side rendering mode and you have a linkbutton in it (i.e. you're able to navigate to a particular item in the related items list by clicking it) then you can just extract the URL from the linkbutton via jQuery. Otherwise you'll have to retrieve the last created/last modified item by the current person from the document library via CSOM.

    Let us know if the former way is OK or not, and we'll give you a code sample.

Displaying 1 to 1 of 1 messages