Choose a layer
Nov 14, 2017
By
Rick Atkins
I have a password that gets entered (123) and stored in a variable. I want the FG Notes layer to open when the user clicks the FG Notes (Submit) button if the password has been already entered. I have tried adding a trigger to show the FG Notes layer if the password variable = 123 and it doesn't open.
Note: It will return to the PG Notes layer if the FG Notes is false.
11 Replies
Hi there Rick! Thanks for sharing your file. I've got it open now, and I'd like to get some clarification on how it should work.
Hi Alyssa, The learner will open with PG Notes layer being displayed. I have re-purposed the submit button to be used to open the FGNotes layer after accessing the password layer first. I am trying to see if there is a way to create a trigger that will have them go directly to the FGNotes layer once the password has been entered.
Hi Rick. I think in the Player triggers for the Base layer, your second trigger should show the FG Notes layer, not the PG Notes layer?
Hi there, Rick. I was having a look the same time as Alyssa, and I noticed this trigger on the base layer:
Should that be to show layer FG Notes if the FGNotes variable is true? The FGNotes variable is only adjusted to true once they land on the FG Notes layer, and THAT only happens if they've correctly entered the password.
It seems logical to me that if they click the FG button on the Player, it should show FG Notes once they've entered the password correctly once. Is there any disqualifying action they could take to need to enter the password again?
I have it as a dual purpose button so that you can switch back and forth between the layers.
Rick - ya, but that button is going to show the PG layer every time because of that trigger, regardless that the FGNotes variable is set to True. You really need two triggers, one that says Show Layer FG Notes if FG Notes is equal to True when the learner clicks the Submit button, and one that says Show Layer PG Notes if FG Notes is NOT equal to True when the learner clicks the Submit button.
However, I think it is a bit confusing that you would click FG Notes button over and over to toggle between the layers - the button label should change to PG Notes. Even that might be a little confusing - is the button label "FG Notes" signifying that you are seeing PG Notes and the button will change the view to FG Notes, or is the label signifying the opposite?
Since you can't modify the Submit button label to "PG Notes" when appropriate anyway, all of that is moot and I think you could simplify all of this by using a couple of custom buttons and get rid of the Submit button altogether. Is that something you could do?
Chris, if you play the file you will see that it switches between the PGNotes and password layers when you click on the button. I want a trigger that allows it to go directly to the FGNotes layer if the password has already been entered before. Do you have a solution for me?
Oops - my edited response crossed paths with your latest response. :)
Let me know if my just-revised response above makes sense to you.
Not too concerned about the label on the button. More concerned about them having to put in the password first to be able to open the FGNotes layer. Once the password has been entered, I want them to go directly to the FGNotes layer without going to the password layer. I have tried adding a trigger that tests for the password variable and it didn't work. Thanks for your responses!
To do it like you are wanting to, you'll need to add several more variables and check for which layer is currently displayed so you can toggle, et cetera. It can be done, but will take some more work. And you will still have the confusing Button With the Label That Never Changes.
If your UI can accommodate custom buttons, have a look at the file I uploaded. It uses two buttons, which greatly simplifies the whole setup.
Hope this helps.
Chris
Thanks Chris! I was trying to outsmart myself by using one button. I will go with the two button option and place them on top of each other so that when they change layers it will have the appropriate button to switch back.
This discussion is closed. You can start a new discussion or contact Articulate Support.