Text entry from variable

Feb 01, 2021

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
Joseph Francis

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.

  1. Create your text box. Style it to look like a text entry field. Insert a Reference, creating a new variable called txtEntryText.
  2. Create a button (Button1), title it First.
  3. Attach a Trigger to the button:
    Set txtEntryText to value One
    When the user clicks Button1
  4. Repeat for as many buttons as you have on the page, titled accordingly
  5. Create Correct and Incorrect layers, with appropriate responses
  6. Enable the Submit button on the slide from the Slide Properties > Slide navigation and gestures ("gear" icon in the lower-right) modal dialog. Delete the automatically-created trigger
  7. Attach a Trigger to the Submit Button for the Correct feedback
    Show layer Correct
    When the user clicks Submit
    if txtEntryText = value One
  8. Attach a second Trigger to the Submit Button for the Incorrect feedback
    Show layer Incorrect
    When the user clicks Submit
    if txtEntryText ≠ value One