Highlighted

Carriage Return Not Working in Captivate

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

 

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

 

Topics

Advanced, Advanced actions

Views

127

Likes

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

Carriage Return Not Working in Captivate

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

 

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

 

Topics

Advanced, Advanced actions

Views

128

Likes

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
Explorer ,
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

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Resources
Captivate User Guide
New Group