Forum Discussion
Keep "Text Entry Field" Line Breaks When Displaying the Variable in a Text Box?
Hi,
Does anyone have a work-around for this issue in the meantime?
I have an Execute JavaScript trigger in my .story file that is accessed via a Rise course.
I need to have TextEntry boxes where the learner can type and print their text as they progress through the course. The Text variables do not recognise line breaks when it goes to print/ new window and I need it to, as the learner could be typing up to 5 paragraphs worth of text - as you could imagine, this does not look nice, nor is it professional.
I have attempted to add TextEntry = TextEntry.replace(/\r\n?/g, '</br>');
to my JavaScript but it doesn't work (the script still works, just no line breaks).
The Essay text variables suggested above don't work either in 360, unfortunately.
Does anyone have any workarounds or suggestions?
Thanks,
Rebecca
Note: Exporting to HTML is not an option at this time, as the .story files are accessed via Rise and could become problematic as I have several instances of these files throughout the course.
Related Content
- 10 months ago
- 3 months ago