Hello All,
I have a task that involves setting up a Parent/Child Relationship lists and takes it a step further and adds documents to a document library from both the Parent list and/or the Child list. I have related web parts on both lists to the document library. I also have a related web part of the child list on the Parent display page. I followed this resource to automatically pass the ID: which is the Title Column of the Parent List to a Lookup Column in the Child List. I would like to pass the Lookup Field item information from the child list to the document library, but the resource is using the "getParameterBYName('ID')" to create the variable passed into the cookie. I cannot use the ID of the Child List because it is referring to the Child Item and not the Parent item. I am passing this item into a Lookup Field on the Document Library Form which filters related Child items when the Parent is selected. Can anyone help me pass the Lookup Field item or get the url of the Lookup Item to pass into the cookie?
I have tried: "var ParentID = document.getElementByID('SPField').innerHTML" This gets me the content for the field, but this does not work for setting the cookie.
Any help is appreciated.
James
James Pruitt