Forum Discussion
Simulating code development in Storyline
Hi, Math,
The user can use the slide's Back button to go back and enter something different.
The issue we had was that we could not create a variable with Enter or Shift+Enter, not that the user was unable to type multiple lines. The user can use Enter or Shift+Enter to create multiple lines in the text entry field, but Storyline will process the entry as incorrect.
In the freeform question, we could use Form view to paste in multiline code, but we could not add line breaks to it. It was very difficult to get Storyline to accept multiline entries as Correct.
I couldn't find any documentation that explains how Storyline evaluates the line breaks in the variable.
We also had to get the user to exit the text entry field so that the variable would change.
As i did some experiments with GSAP's SplitText to create animated lines and create text flowing around images, i discovered that there is a big difference in having the 'wrap text' option active or not. When inactive a block of text is 1 <tspan>, when 'wrap text' is enabled every line is a separate <tspan>. This ofcourse quite hinders scripting text elements in Storyline. That however has changed in an update. Now a textblock is changed in multiple lines of 'vector-text-item'. Whether 'wrap text' is used or not. Making it quite tough to work with text fields in combination with Javascript in Storyline.