Forum Discussion
Minimum word count in freeform text entry two slides - Articulate Storyline
Hello,
I was using the example that was included in this previous discussion: Freeform Question Text Entry Character/word Minimum? - Articulate Storyline Discussions - E-Learning Heroes and it worked GREAT for the first slide, but I need to ask more than one question with different minimums and need to have them in the same instance. I have tried a few edits in the JavaScript and adding separate variables for each slide without luck (I am a js neophyte) and wondering if anyone can help.(?)
Attached is a version of something similar to what I need, and you will notice that the second question can be answered without restriction as it does not communicate with the script. *I left the script as it was from original.
Any guidance is appreciated.
- SteveGannonCommunity Member
I apologize if I'm misunderstanding the problem, Tyler, but won't you achieve what you want if you simply change "TextEntry" to "TextEntry2" in your JavaScript on the second slide?
- TylerAnthony-90Community Member
Thank you Steve, I thought that the JS was specific to the course not each slide. So, I tried some different options. Based on your response, you are saying each slide has its own discrete JS file?
- SteveGannonCommunity Member
You can include any number of Execute JavaScript triggers on a single slide as well as on multiple slides. If you look at the files in the published folder after publishing, you'll find many .js files in the story_content subfolder as well as in the html5 > data > js subfolder.
.