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.
I see you also reached out in this discussion and our team shared there that our QA team is investigating, so I'll be sure to include this forum discussion in that report so that we can update you once there is additional information.
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.
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
I'm not sure I understand how you're trying to set up this formatting for your variables, but if you're able to share a copy of your .story file here with us I can take a look!
The Javascript piece I'd leave to those in the community who are experts on this!
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!
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
I'm seeing the same thing you're seeing. Apparently the workaround doesn't work when the variable reference text box is on a layer. I'm going to keep investigating this, as it seems a bit buggy to me. I'll keep you posted!
Hi Alyssa. I'm seeing the same thing. I'm using JavaScript to concatenate various strings and add line breaks (using \n\n) and display the resulting string in a text box. This works fine on the base layer but not on any other layers
13 Replies
Hey Jay,
I see you also reached out in this discussion and our team shared there that our QA team is investigating, so I'll be sure to include this forum discussion in that report so that we can update you once there is additional information.
Thanks Ashley! I'm crossing my fingers that it'll be fixed soon. A client is needing this feature.
We'll keep you posted on this behavior - but I don't have a timeline or update to share yet.
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.
Hi,
I'm using the latest version of SL360, which is: February 1, 2018 (Build 3.12.14647.0).
The text entry issue is still there. I can not find Update 4. Can you please guide me to the link?
Hello Tanmay,
This thread is a bit dated and it looks like you have Update 12 for SL360, so we do not want you to go back to Update 4.
Can you share the details of what text entry issue you are having and perhaps a sample .story file as well?
Thanks so much!
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!
Hi Jihong,
I'm not sure I understand how you're trying to set up this formatting for your variables, but if you're able to share a copy of your .story file here with us I can take a look!
The Javascript piece I'd leave to those in the community who are experts on this!
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!
This post was removed by the author
This post was removed by the author
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?
Hi Jihong,
I'm seeing the same thing you're seeing. Apparently the workaround doesn't work when the variable reference text box is on a layer. I'm going to keep investigating this, as it seems a bit buggy to me. I'll keep you posted!
This post was removed by the author
Hi Alyssa. I'm seeing the same thing. I'm using JavaScript to concatenate various strings and add line breaks (using \n\n) and display the resulting string in a text box. This works fine on the base layer but not on any other layers
Hi Nigel,
Thanks for chiming in with what you found. I don't have experience with the Javascript method, but I'll certainly add your findings to our report.
This discussion is closed. You can start a new discussion or contact Articulate Support.