Forum Discussion
Assistence Needed: Text Variable in Storyline
In Storyline, while using a text variable, my users need to enter their answers as bullet points. However, even after pressing enter to separate the points, they still appear on the same line when I display the variable on another slide. Please help!
2 Replies
- RashCommunity Member
Hi!
In the above storyline file of carolynkunz​, create a button with bullet icon.
Copy the javascript file in the second slide of the storyline file.
Paste it in the first slide and execute this javascript while the button is clicked.
One slight change in the javascript file would be in the last line, instead of
player.SetVar("FormattedOutput", formattedText);
change to this, player.SetVar("TextEntry", formattedText);
It will work.
- carolynkunzCommunity Member
Hello! You can achieve this using JavaScript. Attached is an example for your reference.