
Problem
Need to change the default project field “Owner” to another custom name such as “Project Manager”
Solution
Notes
- This is a little bit of a hack to rename the “Owner” field on the page it is displayed in without changing internally on the back end.
- The solution only updates the text displayed on the page using javascript
On the PDP, add a content editor web part below the respective project field web part and click “Edit Html Source” as shown below
Copy the following script into the textbox as shown in screenshot below
<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>
Save the PDP