Skip to main content
abeardsl23
Inspiring
October 10, 2017
Answered

Multiple Attempts on Text Entry Box

  • October 10, 2017
  • 7 replies
  • 862 views

Hello, all.  I have a text entry box that requires users to enter a correct answer.  I have Infinite attempts selected, but am only able to enter an answer once.  How do I get the TEB to reset and accept additional attempts?

I have Enter set as the shortcut key, and I have validate user input TURNED OFF, as it will then only allow correct answers to be submitted.

Any help would be appreciated.  Thanks!

Adam

This topic is closed to new replies. Start a new post to keep the conversation going.
Correct answer RodWard

I don't understand your last question, probably a terminology issue. Which variable are you talking about? Is it defined in the Captivate file, did it get a value?


I think I understand what Adam means.  The correct answer is going to be the value of a variable, which might change on the fly.

By default, a Captivate TEB that is set to validate can only validate against the correct answers entered into the validation list.  If you want to validate against a variable, but you don't know how to hack the JavaScript behind the Captivate published output, then you'd have to turn off the TEB's normal validation, remove the TEB's own Submit button, add a Smart Shape button to trigger a Conditional Advanced Action to perform the Validation of the TEB's associated variable against the current value of this other variable you speak of.

Setting this up is not that difficult, but if you're a rank beginner in Captivate it might be somewhat over your head.

7 replies

Lilybiri
Legend
October 10, 2017

Inifinite attempts has the same meaning as for question slides: only with validation will you be able to enter something more than once. TEB becomes inactive after an entry.

Workaround: you need to rewind the playhead a couple of frames. You can use the Success event of the TEB to trigger this action (you'll need an advanced action):

Expression cpCmndGotoFrameAndResume = cpInfoCurrenfFrame - 2

I call this 'micronavigation', one of the subjects I'll cover at the presentation at ALS about the timeline. The first entry will remain in the TEB however and has to be deleted by the user. It is possible to clear the entry by another workaround. Do you need it? It is demonstrated in this moive:

TEBClear

abeardsl23
Inspiring
October 10, 2017

Thanks, Lilybiri!  One last question:  Users will have the correct answer in front of them, they just need to enter it.  I'd like to use Validate user input, but can you do this if the answer is a variable?  

Lilybiri
Legend
October 10, 2017

I don't understand your last question, probably a terminology issue. Which variable are you talking about? Is it defined in the Captivate file, did it get a value?