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

Discussions about Forms Designer for SharePoint 2013 / 2016 and Office 365.
Locked
charles267
Posts: 20
Joined: Wed Dec 23, 2015

25 Feb 2016

The following article (http://spform.com/forms-designer- ... ick-upload) 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?



Thanks!

User avatar
rostislav
Moderator
Posts: 364
Joined: Mon Oct 19, 2015

26 Feb 2016

Hello,

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.

Locked
  • Information
  • Who is online

    Users browsing this forum: No registered users and 12 guests