12-29-2023 15:00 - edited 12-29-2023 15:04
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post

12-29-2023 15:00 - edited 12-29-2023 15:04
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
in my index.js file I have made a reference to my text in my index.view, SpeechBox, and I'm trying to change the text of the element with the JavaScript, SpeechBox.text = "some text" and I'm trying to use the new line, \n, but whenever I do it shows up as some weird character on my versa 3 and doesn't go onto a new line
image of what i mean (what is shown on versa 3)
I apologise if it is hard to understand what I'm asking here, I'm really bad at explaining things
Answered! Go to the Best Answer.

- Labels:
-
JavaScript
Accepted Solutions
12-29-2023 16:12
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post


12-29-2023 16:12
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
- Who Voted for this post?
Ensure that you're using <textarea> rather than <text>. Even so, I've had problems with \n
Gondwana Software
12-29-2023 16:12
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post


12-29-2023 16:12
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
- Who Voted for this post?
Ensure that you're using <textarea> rather than <text>. Even so, I've had problems with \n
Gondwana Software
12-29-2023 20:26
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post


12-29-2023 20:26
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
Hi @Itsbailey - try using " " in place of "\n". Works in some places.
Author | ch, passion for improvement.

