Forum Discussion

NeeluBera-2f144's avatar
NeeluBera-2f144
Community Member
3 months ago

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

  • Rash's avatar
    Rash
    Community 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.