I’m trying to create a Description variable for a Widget (I used the Boolean Widget in my example). The Description is going to need a carriage return (again, as a variable).
I’ve tried a sort of variations like Line 1\r\nLine 2 (and Line 1\nLine 2 and Line 1\\nLine 2, etc.).
I know you can put carriage returns when entered in the configuration window. What’s the secret sauce to getting the carriage return in there as a variable?
You can achieve this by using multiple variables in the variable creator, one variable for each line. In your example above first variable value would be “Line 1” and second variable value is “Line 2”. Then use a string manipulation node to join both the variable with “\n” in between :
join($${Svariable_1}$$,"\n",$${Svariable_2}$$)
Below is a GIF demonstrating this. Hope this helps.