Copy link to clipboard
Copied
I have a text entry box and learner will type in about 40 characters. Learner types in text but does not submit it. Then learner clicks a button that triggers moving to the next page.
Client wants to have an image appear after learner types text but before clicking the button.
I thought about extending the time line and displaying image on time, but I don't know how long the time line should be. Any suggestions for another way to accomplish this?
Thanks.
Copy link to clipboard
Copied
How can Captivate know that the learner has finished typing if there is no action from the learner to indicate he finished, that is why clicking on the Submit button or using a shortcut key is necessary. I don't understand really what you want, maybe I misunderstand.
Copy link to clipboard
Copied
I know there needs to be some kind of trigger, but was hoping for a way that might use the timeline or a variable to accomplish this.
Copy link to clipboard
Copied
This can be done with HTML5 output easy enough. You attach a variable change eventlistener to the variable, when it reaches a certain length, show an image.
Copy link to clipboard
Copied
David, there is not a specific length, how can you use an eventlistener in that case?
Copy link to clipboard
Copied
He said about 40 characters. I don't really know how that could really be beneficial to show an image after about 40 characters. But it could be done. I guess you could actually get a random number from 35-45.
Every time the variable associated with the TEB changes, which it will with every new character, you can check it's length. When it gets to be however long, you show the image.
Sometimes I don't even try to figure out why people want to do certain things, I just try to give them a solution.
I think I would actually check the variable for a certain substring, and then show the image.
Copy link to clipboard
Copied
Yes, understood that you can do it when variable has a certain length, but must have misunderstood that the length is not fixed. Moreover he is not talking about validation at all, not sure if it is a validated TEB.
Copy link to clipboard
Copied
I know. It's a request of a different color. I guess I could give them some "approximated" code!
Copy link to clipboard
Copied
Fine, David, thanks for all the help on this forum.
Copy link to clipboard
Copied
Why not just use a normal Text Entry box and use the ON FOCUS LOST event?
My understanding is that the client wants to have something happen between the time they leave the text box and click anything else.
Maybe that would be good enough, AND it doesn't require any special coding.