Skip to main content
Inspiring
March 15, 2011
Answered

text entry box on focus lost and on success

  • March 15, 2011
  • 2 replies
  • 5154 views

Can anyone explain the different between On Focus Lost and On Success action for a text entry box and why you would want to have a different action for these two settings which seem, at least on the surface, to perform practically the same function?

This topic has been closed for replies.
Correct answer RodWard

There is a difference.

On Success for the text entry box means that the text they entered was validated as correct.  On Failure means the text was not correct.

On Focus Lost allows you to trigger an action if the user types something into the text box and then does not click the Submit button.

For example, you might want a caption to appear telling them they need to click the Submit button to have their text evaluated or validated. So you add a caption to the stage, turn off Visibility, then set On Focus Lost to SHOW that caption and give appropriate instruction.

2 replies

EvBB
Participant
August 5, 2014

In a text entry box, why can I only get a "Failure" caption if I select "Validate User Input"? For example, I could have a slide where I want someone to select the text entry box and type anything they want before they move on. Meaning, I don't want to validate their input. But if they click elsewhere on the slide, I want a failure caption saying "Hey, you gotta put SOMETHING" in that text entry box." But Failure and Hint are both disabled unless I validate. Any workarounds?  Is there a way to validate, but allow wild card input, so anything they input is "validated"?

Lilybiri
Legend
August 5, 2014

Where is Null? - Captivate blog Maybe helpful?

And used similar approach but for Scrolling Text interaction: Custom Short Answer Question - Captivate blog

Lilybiri

RodWard
Community Expert
RodWardCommunity ExpertCorrect answer
Community Expert
March 15, 2011

There is a difference.

On Success for the text entry box means that the text they entered was validated as correct.  On Failure means the text was not correct.

On Focus Lost allows you to trigger an action if the user types something into the text box and then does not click the Submit button.

For example, you might want a caption to appear telling them they need to click the Submit button to have their text evaluated or validated. So you add a caption to the stage, turn off Visibility, then set On Focus Lost to SHOW that caption and give appropriate instruction.

Inspiring
March 15, 2011

Rod, Thanks for this clarification.