Related documents with support of quick upload - passing value to parent form
-
- Posts: 20
- Joined: Wed Dec 23, 2015
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!
Thanks!
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.
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.
-
- Information
-
Who is online
Users browsing this forum: No registered users and 11 guests