Skip to main content
Known Participant
August 24, 2016
Question

How do I add a button to "show the correct answers"?

  • August 24, 2016
  • 2 replies
  • 569 views

I'm using the latest version of Captivate. I have a drag and drop activity in which the user needs to order a series of steps in the correct order (no, I don't want to use the default ordering steps activity because it doesn't match the designer's slide). The activity itself works well, you drag and drop and that's fine, but if the user does it incorrectly at least 2 times, all the next times he does it incorrectly there has to be a button to "show the correct answers".

The flow would be like this:

  1. The user orders the steps correctly - Correct! Go on to the next slide.
  2. User orders incorrectly one time - Incorrect. Try again.
  3. User orders incorrectly 2 times (or more) - Incorrect - Try again or see correct answers. They can keep on trying again as far as I understood the first draft of how the course would be.

However, I can't get to show my specific feedbacks and the buttons... Captivate's default feedbacks are just a text box, and I need a few buttons besides the correct/incorrect caption (like continue, try again and the show correct answers).


I tried having the personalized feedbacks in a different slide, and have the On Success activity thingy to go to the correct feedback, and on Failure to go to the incorrect feedback (though I'm pretty sure it's not that what it means, but it was worth trying). I also noticed that I can't add more actions to the submit button, and that there's no trigger to "submit interaction/activity", which would have solved my problems already.

Could someone help me out? If there's something that needs to be cleared out, say so, though I think I put everything necessary here...

This topic has been closed for replies.

2 replies

Participant
August 25, 2016

Hi Mica,

I played around a bit and was able to solve your question, although it needs some testing.

This is a general overview of what I did (next to creating the drag and drop interaction):

  • use variables to store if a draggable is dragged correct (target1, target2,...).
  • use a variable to count the incorrect answers (I misused 'cpQuizInfoStudentID').
  • Assign or increment the variables above on the drop event.
  • Create custom feedback shapes.
  • Create a custom 'Submit' button, and place the existing button next to the slide.
  • Add a conditional action to the 'Submit' button to show the correct feedback. The 'Show solution' button is only shown when the incorrect answers is 4 or more (and this is the flaw with the design. If a user does not drag all objects, the button will not appear after the second try, but somewhere later).

You can download the project here: https://dl.dropboxusercontent.com/u/2191290/DND_ShowSolutionBtn.cptx

If you have any remarks or questions, let me know.

Dieter

Participant
August 29, 2016

The flaw mentioned in the design above, can be easily solved by using the Submit button as an attempt counter, instead of the incorrect drag actions. This will also make the interactions easier and quicker to create.

Allen_Partridge
Adobe Employee
Adobe Employee
August 25, 2016

Mica,

Thanks for your question. I think that the answer should be that you can simply set the project to infinite attempts and then use the fail event to trigger an advanced action. However when I went to do a quick demo for you I found that the failure event doesn't fire when infinite attempts is enabled.

I've asked QE / Engineering to have a look and to expore any potential workaround. The only way I can imagine making this work given that limitation is to count the drop events using the Object Actions link on the drop target. You'd have to set up a flag variable and use it to count / track selections - but even that would be hard to correlate to actual submission attempts.

Sorry not to provide a better solution option.

Lilybiri
Legend
August 25, 2016

Allen, Failure events only fire after last attempt. Even with non-infinite

attempts. Question design is too strict, reason why I blogged so much about

creating custom questions that give the developer full contol but needs

skills in advanced/shared actions and use if variables. My articles about

questions are the most visited.

Allen_Partridge
Adobe Employee
Adobe Employee
August 25, 2016

Lieve,

I'm guessing that you mean even with infinite events? I get that with non-infinite there will be this sort of 'ultimate failure' - but in an infinite event that would mean that there is no way to trigger a failure event. If that were the case, then why would the option appear in PI? Thus it seems to me to be a bug - even if it's a design flaw. Is there any point at which a failure event would fire on an infinite attempts question?

I escalated the question to the team. Seems to me like the behavior is counter-intuitive though - at least with infinite attempts. Do you agree?

--Allen