Forum Discussion

DavidSmith-6d0f's avatar
DavidSmith-6d0f
Community Member
3 years ago

Text entry, pause and resume

Hi. What's a neat way to have my timeline pause until a user has entered text into a text entry field, and then resume when they're done?

Obviously the pause part is easy, but I've tried triggering a Resume off the Text Entry losing focus and that didn't work, neither did triggering a Resume off the text variable changing. I guess I could just include a 'continue' button, but I'd rather not.

Any ideas gratefully received!

  • MichaelHinze's avatar
    MichaelHinze
    Community Member

    The 'losing focus' event needs to be triggered in some way, e.g. by clicking on another object or by a keypress. See attached a quick example that resumes the timeline by either pressing the Tab key or Enter.

    • DavidSmith-6d0f's avatar
      DavidSmith-6d0f
      Community Member

      ..although annoyingly the Enter key press then becomes part of the text entry, which has an effect on font size and formatting when recalled later in the course as a Reference. I might have to work out a fix for that!

  • Thanks Michael! I hadn't realised that specific keys such as Enter could be used to trigger events - that's a neat way of achieving what I'm after without introducing additional buttons.

  • I usually put a submit button or something like that onscreen so the user has to click away from the text entry field.