I'm trying to copy the user input from a singleline Textbox to a Label and convert it into a hyperlink:
//Converts it through a button
function test(){
var richtext= "";
var link = NWF$(".richtext input").val();
if(link.indexOf('http://')>=0){
var nohttp = link.replace("http://","");
richtext = '<a href=http://'+nohttp+' target="_blank">'+nohttp+'</a>';
NWF$(".calvalue").html(richtext);
}
}
This works fine but after i save it and i want to display it (in the Dispform), it didn't save it at all.
Does anyone know how i can save html code to a label or control?