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