Kashif Nizam Qureshi

Rename Custom Field name on PDP

Leave a comment

Add the following script in Content Editor web part and place that web part in the end of the page (so main custom field is rendered before we can run our script).


<script type="text/javascript">
var ttnA = document.getElementsByTagName("div");

for (var j=0; j < ttnA.length; j++)

{

var orig = ttnA[j].innerHTML;

var stripped = orig.replace(/^\s*/, “”).replace(/\s*$/, “”);

if (stripped == “Owner”)

{

ttnA[j].innerHTML=”Project Manager”

}

}

</script>

Advertisements

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 )

Twitter picture

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

Facebook photo

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

Google+ photo

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

Connecting to %s