Line breaks not showing when retrieving text variable inputs (storyline 360)

Jan 24, 2017

Hello,

I have a text entry field, say in slide 1 where the user types in text with hard line breaks.  In slide 2, I want to retrieve the variable and show the same exact text.  However, the line breaks are not there when I do this.  Is there a way to fix this?

Thanks,


jay

Update: I notice that Storyline 2 has no issues with line breaks. 

13 Replies
Ashley Terwilliger-Pollard

Hi all,

Great news! Articulate 360 Update 4  was just released, and included a number of fixes which you can see in the release notes available here.  The item you all may be particularly interested in is how it fixed an issue where newline characters wouldn't display in HTML5 output when variables were updated via JavaScript.

Just launch the Articulate 360 desktop app on your computer and click the Update button for Storyline 360. Details here.

Let us know if you have any questions, either here or by reaching out to our Support Engineers directly.

Jihong Jin

Hi,

How are you?

I want to set a text variable to a formatted text block, which will have new line, bullets, and some of the texts in BOLD or Italic, and I will reference the text variable to display. 

I tried setting the text variable to "A\r\nB\r\nC\r\nD\r\n", instead of seeing:
A
B
C
D
I see:
A\r\nB\r\nC\r\nD\r\n

I tried coping
A
B
C
D
directly into the text variable value, I see
A




I also tried setting the variable using JavaScript with "A\r\nB\r\nC\r\nD\r\n", what I see is:
A B C D

Please advise, thank you very much! 

Alyssa Gomez

Hi Jihong,

There's a quick and easy way to insert line breaks in a variable reference. Check out this video to find out how!

I see you also wanted to format the text with bullets and bold or italics. I haven't found a way to accomplish that piece, so hopefully someone in the community who has experience with this can chime in!

Jihong Jin

Hi Alyssa,

Thank you very much for your reply.

I tried what you posted in the video, and it works if I do exactly as what you did in the video.

However, in my case:
    Step 1:  I have created a master slide with a layer slide, when I click a button on the master slide, it shows the layer slide with a text box inside a scroll panel, and inside that text box, I reference the text variable I have created. 
    Step 2: I create a new slide in my project, and apply the layout of the master slide mentioned in Step 1
    Step 3: I did exactly what you did in the video, which is creating a input box outside the slide, type in
         A
         B
         C
         D
then copy them into the variable value when creating the trigger you mentioned in the video on the slide created in Step 2
    Step 4: I preview the slide, I see the text box showed up as:
         A B C D

Is that strange?

This discussion is closed. You can start a new discussion or contact Articulate Support.