Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Want to show highlight box over correct answer after 2 attempts

New Here ,
Nov 07, 2017 Nov 07, 2017

Good morning, everyone-

I'm working on an unguided simulation assessment. In this assessment, I have a highlight box and click box over the correct answer, but I only want the highlight box to show after 2 attempts.

I have written a script that isn't working (attached) and I'm hoping that someone can tell me how to fix any mistakes. Let me define some of the items first:

Hint_1: highlight box

v_attempt: variable set at 0 initially

Captivate_AdvancedActions_Attempt2.png

Captivate_AdvancedActions_Attempt1.png

Additionally, the slide is currently set to infinite attempts, but I also tried the same with 3 attempts with no success.

If possible, I would also like to have more than 2 attempts be marked as incorrect. This would mean, when the highlight box appears the user is also wrong.

Any help you be appreciated!

627
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Community Expert , Nov 07, 2017 Nov 07, 2017

Another solution is the scenario 2 which I explained in this blog post:

Replay (slide) Button - Captivate blog

For a larger project that could be a better solution.

Translate
Community Expert ,
Nov 07, 2017 Nov 07, 2017

You are not on CP2017, which version do you use?

Which event is used to trigger this action? You have a click box over the correct answer, with how many attempts? 

BTW: It is much easier to show the complete action by using the Preview butotn (first button, like an arrow, in the control panel top right).

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Nov 07, 2017 Nov 07, 2017

Hi, Lilybiri-

Thank you for your response. I'm in Captivate 8. I have the slide set to execute the advance action script on slide entry.

Currently, the click box is set to infinite attempts because I would like the user to select the correct answer before continuing.

-Lauren

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Nov 07, 2017 Nov 07, 2017

That will not work, that action is only executed when entering the slide, not when you have clicked outside of the click box.

Do you have multiple click boxes on that slide or only one? You need the event when they click outside of the click box. Although you have a Last Attempt event, that will only fire after the last attempt and is unusable. You could try this approacgh:

  • Put a click box covering the whole slide, but it has to be UNDER the click box over the correct aswer. I will label that big one CB_Full
  • Trigger the script you created by the Success event of that CB_Full.
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Nov 07, 2017 Nov 07, 2017

Thank you, Lilybiri-

I see where I was making a mistake. This seems like it would be a solution, but it is still not working for me. The issue is that my highlight box never appears. I've attached screenshots for your reference. The advanced actions are unchanged.

11-7-2017 12-19-25 PM.png

11-7-2017 12-17-54 PM.png

11-7-2017 12-20-29 PM.png

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Nov 07, 2017 Nov 07, 2017

How did you test? I am always reluctant to have two interactive objects on top of each other which is the case here over the correct answer. Will you publish to HTML5 or to SWF? Did you test with Preview in Browser (F12 - SWF) or Preview HTML in Browser (F11)?

When testing add a text container with your user variable to see if it increments correctly.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Nov 07, 2017 Nov 07, 2017

I will publish to SWF and HTML5. I test in both and it doesn't work. I linked my variable to a text caption as you suggested and the issue is with the increment. The variable increments from 0 to 1, but does not go past 1. Any thoughts on why this could be happening?

Thank you- I appreciate it

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Nov 07, 2017 Nov 07, 2017

That is the problem with having different images for one action (hence my suggestion for Preview button).

I thought you had a single decision, which would have been fine, but you seem to have two decisions. Try this one:

IF v_attempt is greater or equal to 2

   Show Hint_1

ELSE

   Increment v_attempt by 1

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Nov 07, 2017 Nov 07, 2017

Great, I'm nearly there.

The fix you provided for my script is now having the highlight box appear after two incorrect clicks, so that is resolved. Now there's a new issue where the correct answer cannot be clicked to let the user advance to the next slide. The click box for the correct answer is located above all other objects, so it shouldn't be an issue with overlap.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Nov 07, 2017 Nov 07, 2017

That is what I feared... especially HMTL5 output is very sensitive to having interactive objects stacked. It may work after publishing but not sure.  For WF it should work.

Another workaround is to have only the correct click box, with 1 attempt. Use the Last Attempt event to trigger the same action. But you'll have to re-enter the slide, to offer another attempt. Add a short dummy slide (0,1sec) before this slide. Add this command to the ELSE part:

    Go to Previous Slide

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Nov 07, 2017 Nov 07, 2017

Thank you. I see what you mean about output files. In my experience if it can break on publishing, it will. The fact that it isn't functioning properly on the preview isn't giving me much comfort haha

I also appreciate you offering other solutions. I'm sure that could work, but I'm worried about efficiency since I'm testing this on one part of what is a larger project.

Are there any other solutions/workarounds that you are aware of? I'm flexible when it comes to the solution's requirements or complexity.

Any suggestions would be appreciated. If not, then I'll implement your last solution. Thanks!

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Nov 07, 2017 Nov 07, 2017

Another solution is the scenario 2 which I explained in this blog post:

Replay (slide) Button - Captivate blog

For a larger project that could be a better solution.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Nov 07, 2017 Nov 07, 2017

I'll look into this. Thanks for all of your help!

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Jun 07, 2018 Jun 07, 2018

Is there an easier way to do this in Captivate 2017?

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jun 07, 2018 Jun 07, 2018
LATEST

No, sorry. 

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources
Help resources