Hi,
Following a Google search I found the example code below to convert a text field into a hyperlink (admittedly it is a few years old, but I can't find anything more recent). When I run this code it fails with the error "ctrl.get_element is not a function".
My javascript skills are quite basic, so I would appreciate any help you could give to resolve this.
Roy
function ConvertToLink(fldName) {
if(Xrm.Page.getAttribute(fldName).getValue()!=null)
{
var content = Xrm.Page.getAttribute(fldName).getValue();
var btn = "<a href='javascript: void(0);' onclick=\"window.open(\'" + content + "\', \'windowname1\', \'width=600, height=650\'); return false;\" style='color:blue;text-decoration:underline !important'>" + content +"</a>";
var ctrl = Xrm.Page.ui.controls.get(fldName)._control;
ctrl.get_element().innerHTML += btn;
ctrl.get_element().firstChild.style.display = 'none';
}
}