Skip to main content
Inspiring
Feb 6, 2020 3:00 AM UTC
Answered

Carriage Return Not Working in Captivate

I used to be able to use "\n" in Javascript for carriage return in a Captivate variable. I can't seem to get it to work anymore. Just shows up blank.

myVariable = "Hi\nBye";

 

This topic is closed to new replies. Start a new post to keep the conversation going.
RyanS_Extron17202589Correct answer
Inspiring
Feb 6, 2020 7:51 PM UTC

Well, using  the HTML <br /> works. I'm not sure why \n used to work, but I think now everything in the Captivate variable needs html markup for any carriage or line return, etc.

 

 

Question_Definition = "Hi"+"<br />"+"Bye";

 

1 reply

RyanS_Extron17202589AuthorCorrect answer
Inspiring
Feb 6, 2020 7:51 PM UTC

Well, using  the HTML <br /> works. I'm not sure why \n used to work, but I think now everything in the Captivate variable needs html markup for any carriage or line return, etc.

 

 

Question_Definition = "Hi"+"<br />"+"Bye";

 

Translate