Skip to main content
Inspiring
February 6, 2020
Answered

Carriage Return Not Working in Captivate

  • February 6, 2020
  • 1 reply
  • 408 views

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 has been closed for replies.
Correct answer RyanS_Extron17202589

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
February 6, 2020

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";