Copy link to clipboard
Copied
Hi
I seem to be having issues with my text entry boxes (TEBs).
These issues appear sometimes not all the time.
The latest one being that when i click the Submit button the Focus Lost text caption is displayed.
I came across the issue when working on a project so i decided to 3 slides project to test it.
1 TEB onscreen.
Slides hides Focus Lost text caption on entry.
No advanced actions.
Timeline just shows TEB and text caption for Focus Lost.

CP9, nonresponsive project ( a new project - just 3 slides), previewing project & previewing in browser. have no published yet.
I have deleted slide and added a new slide.
I cleared cache and reset preferences.
Regards
Donal.
From the way you have described the setup, and the screenshots, it looks to be behaving exactly as it should.
I would have expected the Text Caption to SHOW every time you clicked the Submit button.
The On Focus Lost event should fire when your cursor has been placed in the text field of the TEB and then you move it outside of that field and click anything at all, which would of course include clicking the Submit button of the TEB itself.
So far I'm not seeing any bug or issue here. Can you descri
...Copy link to clipboard
Copied
From the way you have described the setup, and the screenshots, it looks to be behaving exactly as it should.
I would have expected the Text Caption to SHOW every time you clicked the Submit button.
The On Focus Lost event should fire when your cursor has been placed in the text field of the TEB and then you move it outside of that field and click anything at all, which would of course include clicking the Submit button of the TEB itself.
So far I'm not seeing any bug or issue here. Can you describe what you think SHOULD be happening?
Copy link to clipboard
Copied
Hi Rod,
Here is what I thought should be happening:
I must have the wrong understanding of "On Focus Lost".
I thought it was click outside TEB - excluding the Submit button.
So Focus Lost is used when Submit button is not used?
What I want is to display error text captions when user:
• Enters nothing and clicks elsewhere (doesn’t click the submit button)
• Enters some text and clicks elsewhere (doesn’t click the submit button)
(i know that this is unlikely but want to cover the options)
How would I achieve this?
I tried removing On Focus Lost and including a click box that covered screen.
But I ran into this issue:
Also you mentioned that
“The On Focus Lost event should fire when your cursor has been placed in the text field of the TEB and then you move it outside of that field and click anything at all”.
But the cursor in the TEB by default i.e. i can just type without having to click in the TEB first?
Donal.
Copy link to clipboard
Copied
As you say, if you've set up the order correctly, then the cursor would be automatically placed inside the TEB field when you enter the slide.
When you enter something into the text field and click anywhere outside it (including clicking the Submit button) then you trigger the On Focus Lost event. If your click happened to be on the Submit button then you would in fact be triggering two events. On Focus Lost and a possible On Success event. (Although an incorrect answer triggers the appearance of the Failure caption, it does not in fact trigger the On Last Attempt action in your case because you have Unlimited Attempts set.)
After testing a little, I found that if the cursor is in the TEB field, but you have typed nothing, and then you click outside the TEB anywhere, this DOES NOT trigger the On Focus Lost event. It only fires AFTER you have typed something in the field and then clicked outside the field. So. the ON Focus Lost event is probably less useful than it might at first seem.
Each TEB has an associated variable, which would initially contain no value. If what you're really trying to achieve here is test for the user NOT entering anything into the TEB, then you can do this via the Validation. Entering nothing in the field would be marked incorrect. Alternatively, you could set up more sophisticated validation using either Conditonal Advanced Actions or even JavaScript with Regular Expressions (if you're a programmer).
Copy link to clipboard
Copied
Hi Rod
Thanks for clarifying Focus Lost and the cursor.
When you say "If what you're really trying to achieve here is test for the user NOT entering anything into the TEB, then you can do this via the Validation." Are you saying validation by clicking the Submit button?
What i am trying to check for "text box is empty / or has text it in, and user does not click the Submit button but clicks elsewhere?
Maybe i'll just stick with the obvious things a user would do and not try to cover all things.
Re: my possible solution - see below. Just out of curiosity Is it normal that Captivate behaves 1 way in preview and another way when published?
"I tried removing On Focus Lost and including a click box that covered screen (as well as the Submit button).
But I ran into this issue:
Copy link to clipboard
Copied
What do you mean by "Preview mode"?
Are you talking about hitting Control + Enter to publish a preview, or just hitting F3, F10 or something?
Copy link to clipboard
Copied
Hi Rod
I'm talking about hitting the key F.....
I just tried it again on a new project and its behaviour now matches the published version (before it did not).
i.e. select text in TEB and when you release mouse - the click of the mouse activates the click box Success caption.
So you don't need to investigate.
Donal.
Find more inspiration, events, and resources on the new Adobe Community
Explore Now