Answered
Hi,
I have a text node in context and I place the content of that into textfield. In somecases text node holds several lines and I want to display data in single line. I tried formcalc script $ = Replace($, "/u000d", ", "), this removes the linebreak, but does not insert comma and space.
In what way can I acheve my goal?
-Pekka-
I don't really understand why how your code currently removes the linebreaks, but you should use ".rawValue" property and linebreaks should be expressed using "\" i/o "/".
try;
$.rawValue = Replace($.rawValue,"\u000a",", ")