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
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:
Hope it makes some sense.
Kind regards,
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,
Hi Marty,
I'm glad that Christophe's solution worked for you. Instead of "subtracting" what about just adjusting the variable to 0? That's a trigger set up you could implement as well.
That was my first thought Ashley, but my choices were: Add / Subtract / Multiply / Divide / = Assignment
Looking at it again (thank you), the Assignment allows me to 'assign' a value. That makes sense now, I wasn't reading that option properly. I was looking for a 'reset' function.
Thank you!
Marty
No problem Marty - glad I was able to get you in the right direction.
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,
It certainly does make sense Christophe. I am trying to develop good habits as early as possible, thank you again for your assistance on this...and you as well Ashley.
All the best,
Marty
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.
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.
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
Yes Christophe, that's it! I was doing some copy and pasting, then moving things around, so your post makes complete sense. It also points to the value of proper labeling.
Thanks again for your time!
Marty
Glad that Christophe was able to assist you here Marty - thanks for the update!
Glad Christophe was able to assist you here Marty :)
This discussion is closed. You can start a new discussion or contact Articulate Support.