Forum Discussion
Simulating code development in Storyline
Alternative version with a freeform multiple text entry question
I created another design that uses the freeform text entry question. The slide is created with a screen recording, but it also works if you create a freeform slide or create a slide and convert it to a freeform slide.
We used this slide to give the learner experience in typing code. It doesn't let them create their own code. When they type the code they are given and press Enter, they can move to the next slide.
The slide is basically a multiple fill-in-the-blank question.
I moved the default Text Entry field off the screen (the black shape in the following image). In the form view, I made the correct answer "Correct" and set the attempts to Unlimited. I renamed the variable to S2Correct only to help me keep track of which variable to use for the interaction submission. The correct answer and the variable name can be any text.
I disabled the trigger that changes the variable of the default Text Entry field to the typed value when it loses focus.
Then I created other Text Entry input fields for each line of code.
In the triggers, I set the S2Correct variable to change to Correct when the user presses the Enter key if the other variables have the code they're supposed to have.
In case you're wondering about the slide background, it's from the CodeSwing extension in VS Code.