execute an action after a series of true/false variables are true

Aug 10, 2020

Hello,

I have created 6 true/false variables so that when all 6 become true, the submit button state changes from hidden to normal.  That's what I want to have happen, but in reality, it does not.     This is how I've written it

Change state of button 1 - "submit" to Normal

When object1 changes

If object1 = value True

and object2 = value True

and object3 = value True

etc

I built the variables on layers, so when the learner completes the question on layer 1, layer 1's object's variable changes to true, etc.  Not sure what I am doing wrong, so I thought I'd throw it out there to see if someone can tell me what I need to do to make this work.  

4 Replies
Ned Whiteley

Hi Deanna,

From what you have said above, object1 changes when layer 1 is complete. As a result, if you start with layer 1, when object1 changes, object2 and object3 are still False and so the state of the Submit button will not change.

There are two ways to fix this:

1.  If you want the layers visited in any order, you need to repeat your trigger for when object2 changes and when object3 changes.

2.  If you have set up the layers so that they are visited in order, you only require a single trigger that shows the Submit button when object3 changes (you could also avoid using any of the object1, 2 and 3 variables and simply show the Submit button when the question on layer 3 is completed).

Hope this helps.

Deanna Jones

Hi Ned,

Thank you for this.  The learner can proceed in any order.  I do have triggers on each layer set to change the variable to "True" when a "Done" button is clicked.  So object 2 changes to true when the done button on layer 2 is clicked, same for object 3 on layer 3, etc etc.  Then on my base layer, I have the trigger as you see above.  it still is not working.  I don't know if I have to write the trigger a different way?  I've tried to write it "when the timeline starts"   but that doesn't help either.

Ned Whiteley

Hi Deanna,

The attached example should show you how to set up the triggers to get the result you need. I have set up three layers each with a button on the base layer to show them. When the Submit button is clicked on the individual layer it changes the related variable to True and returns the user to the base layer. Once all three variables are True, the base layer Submit button changes state to Normal.

To help you to follow the example, I have also placed the variable references in text boxes beneath each Layer button.

If you have any further queries, just get back to me.

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