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

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

301

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

 

Votes

Translate

Translate
Explorer ,
Feb 06, 2020 Feb 06, 2020

Copy link to clipboard

Copied

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

 

Votes

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