New Document in related items control
Hi there,
The documents content type has a lookup column which references the associated list item.
The "Display" form uses the "related items" control to render related documents. So far so good. The problem is: How do we set the parent ID in case a user wants to add a document using the related items control? There appears to be a work around as described here:
http://formsdesigner.blogspot.com/2014/ ... quick.html
but our users are on the ipad and the document to be uploaded is taken directly from the camera.
Q: How to pass the parent ID to fill the n-end of the relationship for new documents?
Thanks,
Armin
The documents content type has a lookup column which references the associated list item.
The "Display" form uses the "related items" control to render related documents. So far so good. The problem is: How do we set the parent ID in case a user wants to add a document using the related items control? There appears to be a work around as described here:
http://formsdesigner.blogspot.com/2014/ ... quick.html
but our users are on the ipad and the document to be uploaded is taken directly from the camera.
Q: How to pass the parent ID to fill the n-end of the relationship for new documents?
Thanks,
Armin
- Dmitry Kozlov
- Site Admin
- Posts: 1524
- Joined: Thu Jun 07, 2012
Hi,
You can prepopulate the lookup field on the edit form of a document via JavaScipt. Use the following code to get parent ID:
Also, please, read the post below:
http://spform.com/office-365/crea ... office-365
You can prepopulate the lookup field on the edit form of a document via JavaScipt. Use the following code to get parent ID:
Code: Select all
window.top.GetUrlKeyValue('ID')
http://spform.com/office-365/crea ... office-365
-
- Information
-
Who is online
Users browsing this forum: No registered users and 8 guests