Forum Discussion
EricCarlson-118
7 years agoCommunity Member
Print user input from text entry fields
Hi All,
Click to see a demo here
I just finished making a simplified (though still HTML-heavy) method to collect and print user input from text entry fields.
There are some excellent posts on ...
AnnaHoffman-399
Community Member
If you want any "enter breaks" from the data entry fields to be included in the printout, try adding the code below to step 2. It works for PCs, not sure about Macs or Mobile devices as I have not tested it on these platforms.
contents+="<pre>";
contents+="";
contents+=""+TextEntry+"";
contents+="</pre>";
DavidHolzemer
4 years agoCommunity Member
Hi Anna
Where in step 2 would you put this?
- AnnaHoffman-3994 years agoCommunity Member
Hi, the code I used for step two looked like this:
// Step 2. The HTML Section - with the Storyline variables inserted
var contents = "";
contents+="<pre>";
contents+="Here are your notes from the ___________ course";
contents+="";
contents+="Notes";
contents+=""+UserNotes+"";
contents+="</pre>";