Forum Discussion
Storyline - Printing Learner Text with Javascript - Question
Hello Jessica Davis, I'm not familiar with JavaScript, but I'm able to find a way to fix your problem!
So, if you're willing to place the entire question part by replacing "Question 1", simply copy and paste the question text and remove the extra break in both questions and that should work fine as it worked for me.
Hope to hear back from you.
- JessicaDavis-373 years agoCommunity Member
Hi Sandeep!! Thank you for sharing this! By extra break, do you mean to remove the </div>?
- SandeepGadam3 years agoCommunity Member
Hi Jessica Davis, I apologize for the delay. Yes, the text from the question didn't appear in the print preview when I just copied and pasted the question content.
As a result, I pasted the text into notepad, eliminated the excess space (/div>), and then changed the text for Question 1 to reflect the actual content of the question in the existing JS code.
Select the text box properties in the SL file and turn on wrap text for both text boxes.
Please refer to the screenshots I've attached, where I've shown where to delete the additional space. After doing this, everything worked perfectly on my end.