Icon won't hide even though variable is true
Jan 10, 2019
By
Heather Vogt
Hello, friends! Happy New Year!
I am currently pulling my hair out trying to figure out why I keep seeing a lock when it should be hidden.
Setup: When a variable - JonesCompleted - is True, a lock icon should be hidden.
Problem: The lock persists even when the variable is True.
Every other lock on the page also has this problem. I'm hoping that by figuring out the Valdez lock, I can apply that to fixing the rest (thereby solidifying my understanding of the solution).
I do have a Review link if you want to check out the entire scene, BUT I'd like to privately share that if you DM me.
Thanks for all you do!
PS If this is a simple solution and I overlooked it, I will be totally embarrassed.
16 Replies
Hello, Matthew! Thanks for the quick response!
This slide is set to Automatically decide when revisiting.
What's also odd is there are a couple other elements - a shape that makes the names clickable and a green check - that have the same setup but work just fine.
They are "opposite", changing state from Hidden to Normal rather than Normal to Hidden, but the when (when the timeline starts) and the how (variable is true) are the same.
Try setting this property to Reset to Initial state. The automatically decide functionality is a bit wonky.
Hello, Nancy! Set the slide these live on to Reset to Initial State? Will that reset my variables each time though?
Gotta trouble shoot some way. It won't hurt.
When I have problems like that, I place switches on the page that change the variable manually to test.
Try changing the order of your triggers too.
W Gill,
I'm not sure what you're talking about. I do have slide references to test with, and the variables change from True to False when a user clicks something on a layer. My references show me my variables are changing as they should; it's just one of the three elements linked to those changes - False to True - isn't working properly.
Sorry if I misunderstand what you're saying. Thanks for the help!
Hi Heather,
That is exactly what I was thinking. I'll be happy to take a look if you want to share.
This does not impact the variables. All it does is force the timeline on the base slide to start at the beginning each time the user goes to the slide.
I tried Reset to Initial State and the problem persisted. I'd share the project on this thread, but it has Epic screenshots. Let me rip those out and completely reconfigure a file that's shareable.
Wow. I just copied this scene to a new SL 360 project, ripped everything extraneous out and retooled it for sharing. It doesn't look pretty (I didn't realize how hard it was to copy and paste slides from one SL project to another - fonts were smaller, shapes were out of place, etc.), but it's functional!
I labeled where you need to click to change variables, trigger triggers, etc. This pared down (ugly) version functions exactly as my problem project; now I just hope someone can help me find a solution!
Here's the gist of what I'm looking to get:
Thanks!
Change the lock icon to hidden when the timeline starts and slide properties to Resume Saved state.
Also, I went in and changed all triggers to "when the timeline starts" I got all green checks thru the patient list and the locks were hidden.
W Gill,
But I'd like each lock to be Normal when the timeline starts on the slide unless a variable is true; the locks should be Hidden when the variable is true. Maybe I'm misunderstanding what you mean.
And some of the elements needs to wait until the timeline reaches 3 seconds; that's the timing for the clipboard to appear. I don't think the timing is the issue, but who knows?
Thanks again for taking the time to look at my project. I'll poke around making the tweaks you suggested and see what I get. Once I find a solution, I'll update this post.
The timing shouldn't be an issue because you have the element appearing at 3 seconds anyway.
When I got to Valdez, the lock hide, but were still showing on the other patients.
Okay it looks like the problem was the When revisiting setting. Originally I had the slide on the default - Automatically decide. That always seems to work well for me, but this time it didn't.
I changed When revisiting to Resume Saved State. All my locks were hidden when needed.
I don't really understand the When revisiting settings; I've read about them for sure, but, conceptually, I don't think I "get" it. I'll revisit those articles now that I have a use case for changing to Resume Saved State.
Thanks to everyone for the help!!
This discussion is closed. You can start a new discussion or contact Articulate Support.