Copy link to clipboard
Copied
Hi community!
My project is on CP9. I have a text entry box. I want to enable a caption saying "wrong" if the entered text is not what is expected. On the other hand, enable caption saying "true" if the entered text is true. I have created an advanced action for this purpose. The problem is, when the entered text is wrong the caption saying "wrong" shows up, but when I delete the text and input the true answer it does not work. The caption "wrong" still maintains on the screen. How can I make the TEB check for its entry multiple times, like if I enter wrong answer the caption "wrong" appears, if I enter right answer the caption "true" appears and caption "wrong" disappears.
Thanks in advance!
Cheers!
Xiaolung
Copy link to clipboard
Copied
Is there a specific reason why you do not use the built in Success and Failure captions? If the TEB is validated, which should be the case since you talk about 'wrong' and 'correct' entries, you can use those captions the same way as for other interactive objects and question slides.
If you want indeed to have other captions, you'll need to use an advanced action for the Success event, which hides the 'wrong' caption and shows the 'correct' caption.
Copy link to clipboard
Copied
Thank you Lilybiri​!!!
Built in Success and Failure captions disappear after a while. I am using several TEBs, and I wanted captions to stay on the screen.
However, now I changed my mind and want green and red shapes instead of "true" and "wrong" captions. I want green shape to appear if the entry is true and red shape to disappear(if there was a wrong entry before); red shape appear if the entry is wrong and green shape disappear. I tried with advanced action(conditional) saying:
if "variable" is equal to "true"
show green_shape
hide red_shape
if "variable" is not equal to "true"
show red_shape
hide green_shape
For the first entry it works. Like if I input true answer and press Enter on the keyboard the green shape appears, but when I press the "Backspace" on the keyboard to delete the true answer and type another text and press Enter it does not work. The same happens vice versa, I mean trying with wrong answer and then true answer.
Please help me!
Copy link to clipboard
Copied
Which version are you using? Which event's) do you use to trigger that conditional action? You probably have to rewind the playhead so that it is before the pausing point to allow a new entry. How many attempts do you indicate for the TEB? How did you define that 'variable'? Normally the variable associated with the TEB will get as value the entry, not True or False.
Copy link to clipboard
Copied
I'm using CP9. On success I execute advanced action. I have infinite attempts checked. Yes, the variable associated with the TEB stores entered information and checks it with literal value on my advanced action. Does rewinding reset all TEBs and I will ahve enter answers again? Is there another way of doing this? Thanks!
Copy link to clipboard
Copied
Forgot to tell that you can increase the time for the Success/Failure captions (look in Timing Properties panel).
If you choose Infinite attempts and validate the TEB (you still didn't specify that you Validate), the Failure action will never execute! That means that you only will see the Success objects ever. You misunderstand the action Success: if the TEB is NOT validated, that is the only action. Can you confirm that you do not use validation, and post the real conditional action? Use the Preview button in the Advanced Actions dialog box (top right, first button of the control panel which looks like a Play button). Also post a screenshot of the timeline, because I have no idea how many TEB's are on that slide. Do you have to attribute a score to the TEB's? If not, maybe it would be easier to use the Scrolling Text interaction, which is not interactive and you don't have an active/inactive part.
Copy link to clipboard
Copied
Yes, I don't use validation. I don't need scores, I just want the user to enter a text in TEBs and see if they were right or not by seeing the green tick if it's true and red cross if it's wrong. As I said earlier, when I enter a text accepted as "correct" it works by showing me the shape(green tick), but when I delete the "correct" text and put another "wrong" text it does not show me the red cross. However, it should hide the green shape and show me the red shape. Moreover, it should hide the red shape and show green shape if the "correct" text is put again. Here I put screenshots you asked. Thanks!
Copy link to clipboard
Copied
Please, post a screenshot of the TIMELINE! That panel is hidden on all your screenshots, click on the panel title at the bottom to open it.
Copy link to clipboard
Copied
Sorry, here it is...
Copy link to clipboard
Copied
I cannot see the timeline itself because you zoomed it out to the maximum, zoom in please so that I can see the timeline itself and the pausing points of the TEB's . Do you realize that the Timeline panel is THE most important panel in Captivate?
You don't use a Submit button for the TEB's, but probably exactly the same shortcut key (ENTER) for all TEB's?
Copy link to clipboard
Copied
Well, not really. Not very experienced . Yes, I don't use submit button, but shortcut key Enter.
Copy link to clipboard
Copied
Will try to write out a step-by-step later on (have a Connect meeting in a few minutes). Something you have to be aware of: what if the user types a capital? In a conditional action you have to take care of that, because you cannot turn off case sensitivity.
Copy link to clipboard
Copied
Thank you! No problem. Have a nice meeting! About capitals, it's not a problem, let's assume that the user will not type with capitals
Copy link to clipboard
Copied
Can you write the steps please...as soon as possible...I don't want to hurry you, in case you forgot Lilybiri​
Copy link to clipboard
Copied
Bummer, didn't forget but struggling again with HTML5 output. What has always worked perfectly in SWF output, is not guaranteed in HTML and this seems again such a case. Rewinding the playhead a couple of frames back (have that somewhere on my blog) doesn't give another opportunity to enter a new value. You probably need HTML output? TEB has its limitations, which is the reason I often replace it by a Scrolling Text Interaction. The new CpExtra widget (InfoSemantics) has solved some TEB-issues for me (it is not free), but I doubt you have that widget.
Copy link to clipboard
Copied
Hello Lilybiri​!
I read your blog about rewinding the playhead 3 frames back. Now it works!!! I can renter answers in the TEB and show and hide the red and green shapes according to the input. However, now I am struggling with another problem
. There are 4 TEBs on the slide. After typing the "correct" answer on the first TEB, I see my green shape(
) and then go to the next TEB. Then I type the answer for the second TEB and want to go to third TEB, but focus goes back to first TEB. I would like the cursor to stay on that second TEB and let me press TAB to go to the next TEB. How can I solve this problem? Please help!