Make a button appear when a condition is met

Jun 24, 2022

Hello.

In order for students to access and take a final exam, I want them to complete at least 2 optional mini-modules. I have a take final exam button on the main page where the buttons to all the optional mini modules appear. You can see each button will trigger a selected mini modules. The student must complete at least 2 but can also choose to take all 9. I don't want the exam button to present itself on the page until the completion of 2.

Do I set up a number condition or a true/false condition. Not sure which is effective for this situation. 

I have attached screen shots of the module landing page and the scene screenshot.

Thank you for your help

6 Replies
Tom Kuhlmann

There are a few ways to do this. I'd probably use some sort of counting variable since they don't need to do all of the modules and you don't know which one they'll use.

  • Create a number variable
  • At the completion of each module, create a trigger that adds 1 to the variable
  • Create a trigger that enables the exam button when variable = 2 or greater.
Jennie Lee-Pace

Hi Tom. Thanks so much for responding. I want to make sure I'm doing this correctly.  At the end of each optional module, I create a trigger:

a) Action - Adjust Variable

b) Variable - Add value 1 to "variable name"

c) When -  Timeline ends on  This slide (this slide being the last slide of each module)

THEN to trigger the FINAL EXAM button to appear on the menu page do I????

a) Change state of "Button" to Normal

b) When "variable name" changes 

c) If condition "variable name" = value 2

Or is there a better way to hide the button initially and have it appear when the condition of "value 2" is met?