Insert new line in string

Hi,

I just want to insert a new line after a sentence like so:
“Text lalala
Text lala”

How do I do that with code?

1 Like

Hi :slight_smile: Try using the WIX code Api references, you can find there a whole section about the “text” element. In your case you can also use set text(). First - get you element by selecting it (with ID for example), and then use set text() to manipulate it.

For those who are wondering I got something much easier:
Use “\n” for a new line
“Text lalala\n
Text lala”

1 Like