Forum Discussion

ShannonTeam-805's avatar
ShannonTeam-805
Community Member
12 hours ago

Trigger for Text Entry to Play Screen Recording Action

I am working on a simulation in which I need the screen recording action to play when a specific number is entered into a text entry field. I don't want the user to have to click anywhere else, as the screen recording shows a dropdown populating from the text entry field. I cannot use the "When the user clicks" trigger because the text entry ends in 3 and there are 2 other 3s in the number.

  • Nedim's avatar
    Nedim
    Community Member

    This solution involves JavaScript because I don't see another way.

    • Nedim's avatar
      Nedim
      Community Member

      Ok, never mind. I just saw your new post. Why not validate a whole number instead and use a number field rather than a text field?  You could also limit it to an 8-digit number. This would also involve JavaScript.

  • Nedim's avatar
    Nedim
    Community Member

    What would I need to input as the user for this to work? Would typing "333" fulfill the criteria, where entering the number 3 for the third time triggers the screen recording to play?

    • ShannonTeam-805's avatar
      ShannonTeam-805
      Community Member

      It’s actually an 8-digit number, but the 2nd, 6th, and 8th numbers are all 3, so I can’t use the keystroke trigger. 

  • Hi, Eric! Thank you for the reply. I used that trigger, but the user has to click off of the text entry box for the trigger to work. I need it to happen when they type the last number, not when they click out of the box.

     

  • Hello Shannon,

    I'm happy to help! You can use an adjust variable trigger to play the screen recording when the TextEntry variable changes. Add a trigger condition to set the number the learner needs to enter to execute the trigger. Please see the screenshot below from the attached Storyline project file.

    Let me know how it goes, and I'll be more than happy to assist further.