AnsweredAssumed Answered

Nintex Forms Javascript how to convert input into a Hyperlink

Question asked by jonaroy on Apr 10, 2018
Latest reply on Apr 12, 2018 by emha

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?

Outcomes