New Document in related items control

Discussions about Forms Designer for SharePoint 2013 / 2016 and Office 365.
Locked
armin o
Posts: 21
Joined: Sun Jan 17, 2016

18 May 2016

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

User avatar
Dmitry Kozlov
Site Admin
Posts: 1524
Joined: Thu Jun 07, 2012

18 May 2016

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

Locked
  • Information
  • Who is online

    Users browsing this forum: No registered users and 17 guests