Page 1 of 1

New Document in related items control

Posted: 18 May 2016
by armin o
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

Re: New Document in related items control

Posted: 18 May 2016
by Dmitry Kozlov
Hi,

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')
Also, please, read the post below:
http://spform.com/office-365/crea ... office-365