Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Carriage Return Not Working in Captivate

Explorer ,
Feb 05, 2020 Feb 05, 2020

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

 

Translate
Explorer ,
Feb 06, 2020 Feb 06, 2020
LATEST

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
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
Resources
Help resources