How to create a text box which, when filled correctly, starts a timeline?

Hi! I would like to know if there is a way to create a blank box, in which when you enter a number, it starts a TL. For example, the number 2,4,6,8 start a timeline CORRECT. The numbers 1,3,5,7,9 start a TL INCORRECT. Is it possible?

Hi Edmundo:

This is not something Hype specifically can help you with, but once you find the answer you can use Tumult Hype’s JavaScript function editor to target individual HTML elements (like input forms). The actual function used to start a timeline is:
hypeDocument.startTimelineNamed('timelineName', hypeDocument.kDirectionForward)

More functions are here: https://tumult.com/hype/documentation/

Here’s where I would start reading: Howto: Simple Quiz Example
And for additional JS functions:
https://www.google.com/search?client=safari&rls=en&q=javascript+detect+correct+answer&ie=UTF-8&oe=UTF-8

1 Like