If this has been posted previously, I apologize; but I searched and couldn't find it.
Using Captivate 5, I am creating a custom quiz question, not using the built in quiz tools because my client doesn't like them (don't get me started). It's a simple question with two text entry boxes to enter the letter matching the correct definition. While we are checking for correctness, there is no actual scoring or retention of score. They must get it right to move on, however. Since there is really no way to clear a text entry field that I can find, I am using advanced actions with a Retry button to move to the next slide. That next slide is a dummy which simply returns to the previous slide, thus resetting the entire slide including TEB.
Here's the problem: it only works once. If they get it wrong and then click Retry it works perfect. But then if they insist on getting it wrong again and click Retry, it doesn't work.
Anyone have an idea of what I should be checking here?
Bit difficult to find the cause without seeing the advanced actons. Why did you not try one of Jim Leichliter's widgets:
It allows you to control what will be visibel in the TEB, and you can change the content of the variable by an advanced action (for resetting). I didn't blog about this particular widget, but about using the TextArea widget with variable that is similar:
I tried the widget, but it really doesn't do what I need. Here's the outline of my code:
Just can't figure out why it works once but not more than once.
Similar issue. Built a quiz question with multiple correct answers (click all that apply) using clickboxes and advanced actions. AA on entering slide makes sure everything is reset (hiding and showing buttons, resetting 4 variables to 0). When you select answers and click Submit, it checks for correctness and displays appropriate feedback. Clear button goes to next slide, which is a dummy to simply return back to slide and therefore execute the reset code on slide entry. If you get the question right, Next button jumps two slides ahead for the next content slide.
Everything works perfect first time through, even if learner gets it wrong multiple times. Once they click next to go on and then use back button on skin to return to the page, things go slightly south. Interaction continues to work perfect until learner clicks Next button, then the button is totally non-responsive. To reiterate, there are NO advance actions on Next button, just a Jump to Slide.
Have tried practically everything, including copying all slides and pasting into a new blank CPTX file. Any ideas?
And so you shall have it....
This code executes on entering the quiz slide and is designed to simply hide checkmarks and show buttons and zero out varibles that are meant to be zero for false and 1 for true.
QuizClear, QuizSubmit, and QuizNext are buttons. QuizRightCap and QuizLeftCap are captions that appear on scoring. QuizASelected - QuizDSelected are toggle variables for selected choices; zero when false and 1 when true.
Here is the code executed when you click a clickbox. It is the same for all four with the exception of the object and variable references.
When you click Submit, the following code executes:
Since A, B, and C are correct and D is incorrect, then we check for the three trues and one false. If so, we show the correct feedback caption and the next button and hide submit and clear. Clicking Next executes a simple Jump to Slide command.
Otherwise, we show the incorrect feedback and hide submit. They would then click Clear which is simply a next slide command. On the next slide, which is a blank dummy that lasts for .25 seconds, it has an onExit command to go back to the previous slide (the quiz slide) which executes the onEnter code above and resets everything.
Again, everything works perfect until you advance to the next content slide by clicking Next and then use the back button on the skin (Captivate default) to go back to the quiz slide. Everything works perfect again until you go to click the Next button and then nothing happens. Here's the next button's Properties panel:
I tried to keep it simple and really can't figure out why it won't execute the second time around.
Update: even went to the extent of calling Adobe, who said they can't help me since it is version 5 and not 6. Finally had to create a workaround. Left a dummy next button in there that does not pause and has no programming at all, extended the slide length and programmed the onExit action to navigate to the next content slide (slide 42). Then programmed my Submit code to add a Continue at the end of the correct branch so that the timeline continues to play. Result being that if you get the question right, you get the correct feedback and the slide sits there for 10 seconds and then moves on. I have tested this and it works consistently. I am convinced there is an issue in the foundational coding that makes the issue happen with the buttons.
Really sorry, must have missed your answer when you posted the screenshots of the advanced actions. And I have been a bit too busy as well.
Cannot figure out what is going wrong from the screenshots. If you still want me to explore, it would be easier if I had access to the file. If you could post it somewhere and send me the link by private message, will have a look. And I do sitll have CP5 installed somewhere.