Skip to main content
UsernameNumber
Participating Frequently
February 5, 2016
Answered

multiple-use textboxes?

  • February 5, 2016
  • 1 reply
  • 442 views

I have a project where the student has to solve a problem by looking at a series of graphs, each identified by a numeric ID. In the project I have a textbox where I want the user to type an ID (I considered using buttons, but in the real-world application for which students are training they search by number, so I figure I should try and mimic that).

The success action for the textbox is a conditional action that sets the state of an otherwise invisible button to a state that displays the desired graph in part of the screen. The button then becomes visible, and clicking it returns it to the default state (button invisible, no graph displayed). The "else" action for the conditional displays a generic "this is not the graph you're looking for" message.

Ok, so, I'm rather proud of myself for coming up with this, except there's one problem: It seems that even if it's set to infinite attempts, once the text box registers a "success", it doesn't do anything for subsequent entries.

I have figured out a workaround, but it's a bit of a kludge: give the next slide an On Enter action that jumps back to the previous slide, thereby "reloading" the text box so it behaves as expected. Obviously this is going to make navigation tricky, and it's just a messier solution than I'd like.

Does anyone know a better way to do this?

This topic has been closed for replies.
Correct answer TLCMediaDesign

Don't use the TEBs default button, uncheck Display/show button. Use a button not attached to the TEB.

1 reply

TLCMediaDesign
TLCMediaDesignCorrect answer
Inspiring
February 5, 2016

Don't use the TEBs default button, uncheck Display/show button. Use a button not attached to the TEB.

UsernameNumber
Participating Frequently
February 5, 2016

Ah, good idea. I'm actually not using a button, but instead having the user press Enter, which is what they'd most likely do in "real life". Is there a way to make it so that pressing Enter in the textbox triggers an action but not a "success"?

Lilybiri
Legend
February 5, 2016

Alternative to David's excellent proposal: rewind the playhead one frame back, so that you are again before its pausing point.