Carriage Return Not Working in Captivate

Explorer ,
Feb 05, 2020 Feb 05, 2020

Copy link to clipboard

Copied

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

 

TOPICS
Advanced, Advanced actions

Views

165

Likes

translate

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct Answer

Explorer , Feb 06, 2020 Feb 06, 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"; 

Likes

translate

Translate

Translate
Explorer ,
Feb 06, 2020 Feb 06, 2020

Copy link to clipboard

Copied

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

 

Likes

translate

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines