Hiding ‘Try Again’ button on second attempt

Apr 08, 2015

Hello ELH community.  Long time peruser, first time asking a question.

I am at my wits end trying to solve this one, so I am hoping someone can help me out here.  Basically, I am looking to give the user four answer choices, each of them with a different ‘results’ explanation layer and point values.  The range would be ‘Poor’ (0 points), ‘OK’ (10pt), ‘Good’ (15), and ‘Best’ (20pt). 

Is there a way to hide the ‘Try Again’ button on the second attempt…so they are unable to attempt it for a third time?  I tried messing with the variables, but nothing I try seems to stick and I am finding myself even more confused now.

I am attached the file in hopes that someone can show me that I am simply overlooking something. I’ve stripped down the file as much as possible to get to the core issue.

Thank you in advance for your help.

Marty

12 Replies
Christophe Jacobs

Hello Marty,

I think I fixed your project. I added it as an attachment. Can you check if everything works like you want it to work?

I completely changed the logic that was used, you will need to go through it and check if you can follow the logic. But here are a few things I changed:

  • Your question did not submit anywhere so I made sure that the CONTINUE button now submits the interaction. 
  • Changing the state of the TRY AGAIN button is now linked to a user variable called ATTEMPTS.
  • I switched the WHEN in your interactions that made the TRY AGAIN button go into hidden state from the start of the timeline to clicking on the answer possibility.
  • Now you do not need to worry about the attempts you set in the question. The user has their first feedback even when the question is not submitted and they can still change their answer by simply clicking the try again button. 

Hope it makes some sense.

Kind regards,

Marty Shaughnessy

Christophe,

Thank you very much, this is perfect.  The logic makes sense to me as well, so I am learning from your help.  Much appreciated.

As there are five questions in this series, I know I need to reset the ATTEMPTS variable before the next question to get the same functionality, but the only way I could see to do that was to use 'Subtract 2.00 from Attempts When the timeline starts' at the beginning of each new question.  It is working, so don't feel like you have to spend any more time here.  I was just wondering if that was the best way to accomplish that.

Thanks again for your help.

All the best,

 

Christophe Jacobs

Hi Marty,

Great to see your problem is solved. I justed wanted to add something about why I also think Ashley's solution is better practice.

If you use the assign value trigger to set it back to 0 this will be more useful in the rest of your project (and when you are updating in the future).

Because what if you want to change the number of attempts to three in three months? Then your variable will be 3. And your trigger that says "Subtract 2 from ..." is no longer working. Now if your trigger says 'Assign 0 to variable ...' then this is not linked to a fixed value.

Hope this makes sense.

Kind regards,

Marty Shaughnessy

I hate to 'reopen' this, but somehow on the second question it doesn't seem to be reading the variable and still shows the 'retry' button even if it is properly recording the second pass.

Any ideas how I broke this Christophe or Ashley?

Thank you, Marty

p.s. Please ignore all formatting, etc.  I quickly stripped the content so I could post this to the forum.

 

Christophe Jacobs

Hello Marty,

Just checked your file and the solution I found is related to labeling your elements.

When I gave your TRY AGAIN buttons a number to see which on which layer they are located I could see that when you click the B3 button, you try to set the TRY AGAIN button on Incorrect 3 to HIDDEN while you open Incorrect 2 by clicking on the button.

  • When I try 2 times B1, the behaviour is as expected.
  • When I try 2 times B4, the behaviour is as expected.
  • When I try 2 times B3, the behaviour is not as expected because the trigger is never linked to the TRY AGAIN button on that layer.

So just link to the correct TRY AGAIN button and it should work.

Unless you get a different behavior from your course during your tests?

Keep me updated!

Kind regards,

Christophe

This discussion is closed. You can start a new discussion or contact Articulate Support.