Text entry from variable
Feb 01, 2021
By
Ine Pellens
In a normal text entry quiz slide, the value has to be entered manually into the TextEntry/NumberEntry field and then has to be submitted.
Is it possible to "import" the value instead of entering it manually?
I'd like the user to set the correct value value by clicking on buttons. I know how to show the calculated value in a normal text field, but how can I get the value into the TextEntry field?
4 Replies
If the learner will not be hand-entering a value into the field, I would not use a TextEntry Field, I would use a text box that has been styled to LOOK like a TextEntry Field. You could even style it to look like an "entry disabled" (gray interior instead of white) TextEntry Field.
Thanks Joseph...that makes sense.
But how do I "tell" storyline that it has to evaluate the entry in the text field for this quiz slide, instead of the the value in the standard TextEntryField?
What we're creating is essentially a Multiple Choice Graded Question, with buttons instead of radio buttons. Storyline will evaluate the value of the variable when the Submit button is clicked.
Set txtEntryText to value One
When the user clicks Button1
Show layer Correct
When the user clicks Submit
if txtEntryText = value One
Show layer Incorrect
When the user clicks Submit
if txtEntryText ≠ value One
Thanks Joseph. That works.
The golden tip was using the Multiple Choice Graded Question type instead of the Tex Entry Question type.