Multiline values

Is there anyway to capture a multiline value in camunda modeler? Struggling to find an example using forms or scripts?

// Tried a few scripts but each has failed.

var myval = line 1 line 2;
execution.setVariable(‘myfield’, myval );

var myval2 = “line 1
line 2”;
execution.setVariable(‘myfield2’, myval2 );