I have a multi line text column in my Sharepoint 2010 custom list grid. My columns are (EmployeeName, EmployeeIDNumber, EmailLink). EmailLink column is a multi line text field where I have an Anchor tag:
<a href="website.com">John Doe</a>
I want to dynamically populate the Text value of the Anchor tag with the value from EmployeeName.
I have tried adding javascript to the HTML Editor of the EmailLink column. When I try to save, Sharepoint 2010 strips the added javascript including the Script tag.
This is how I see the solution working:
<a href="website.com" id="myEmailID">John Doe</a>
<script>
function onLoad(){
var rowData = SomeSharepointMethod();
Document.GetElementByID("myEmailID").innerHTML = rowData["EmployeeName"];
}
</script>
If it is possible, is there a Sharepoint documentation or method that accomplishes the goal of reading all data from that row?