PDP to List data entry

Place jquery file as per location.

Add the following in a add form of list item, replacing ProjUID and Owning Project with the correct column name.

<script src="/PWA/SiteAssets/jquery-1.10.2.min.js" type="text/javascript"></script><script type="text/javascript">
$(document).ready(function() {

 var Puid = window.parent.PDP_projUid;
 var project_name = window.parent.PDP_projName; 

 var subjectIDTextField1 = getElementByTitle("input","ProjUID");
 subjectIDTextField1.value = Puid; 

 var subjectIDTextField= getElementByTitle("input","Owning Project");
 subjectIDTextField.value = project_name; 
 $(":input[title='Owning Project']").attr('disabled','disabled');

var HidePUID = getElementByTitle("input","ProjUID");

function getElementByTitle(tagName,elementTitle)
	var list = document.getElementsByTagName(tagName);
	var elementTag;
	for (i=0;i!=list.length;i++) {
	if (list[i].title == elementTitle) {
	elementTag = list[i];
	return elementTag;

Add the list on a PDP and add content query filter to filter the list on projuid.


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s