So I came across this post
http://patrikluca.blogspot.com/2009/04/add-url-to-description-of-sharepoint.htmlAnd this might suffice.
Here is my HyperlinkHandbook.js:
Code:
function getTagFromIdentifierAndTitle
(tagName,identifier,title){
var len=identifier.length;
var tags=document.getElementsByTagName(tagName);
for(var i=0;i<tags.length;i++){
var tempString=tags[i].id;
if(tags[i].title==title && (identifier=="" ||
tempString.indexOf(identifier)==
tempString.length - len)){
return tags[i];
}
}
return null;
}
var myLink = document.createElement('a');
// The contacts list is located in the same site on the same level
// as the list for which the hyperlink is added to a column in
// the NewForm.aspx page here
myLink.href = "/hr/Shared%20Documents/Associate%20Handbook.pdf";
// Open the hyperlink in a new browser window
myLink.target = "_blank";
// Text of the hyperlink
myLink.innerText = "Link to Associate Handbook ";
var theSelect=
getTagFromIdentifierAndTitle("input","","Agreement");
// if theSelect is null, it means that the target list
// has more than 20 items, and the Lookup is being
//rendered with an input element
if(theSelect==null)
{
var theInput=getTagFromIdentifierAndTitle("input"
,"","Agreement");
// Add the previously created hyperlink in front
//of the SharePoint column
theInput.insertAdjacentElement('beforeBegin',myLink);
}
else
{
theSelect.insertAdjacentElement('beforeBegin',myLink);
}
but nothing is going on
Here is my CEWP code
Code:
<script language="JavaScript" src="/javascript/HyperlinkHandbook.js"></script>
<script src="/javascript/jquery/1.4.2/jquery.min.js" type="text/javascript"></script>
<script src="/javascript/jquery/jquery.SPServices-0.5.8.js" type="text/javascript"></script>
<script type="text/javascript">
$(document).ready(function() {
$().SPServices.SPCascadeDropdowns({
relationshipList: "Access Control Types",
relationshipListParentColumn: "ACCategory",
relationshipListChildColumn: "Title",
relationshipListSortColumn: "",
parentColumn: "ACCategories",
childColumn: "ACType",
promptText: "Choose {0}...",
completefunc: null,
debug: false
});
});
</script>