Forum Discussion
Using states to create select and deselect
How do I set my triggers to make an object appear selected when clicked once and normal when clicked again?
Cant seem to get it to work 
22 Replies
- MichaelRice-a6eCommunity Member
Thanks,
I do have one last little question.
As you may have surmized, I am using variable staements to show, on a single slide, a list of selections that are made over a couple of slides.
Select the rectangle on slide 5 and it shows up in a list of all choices possible on slide 7 as one of your choices. (using selected state with a glow)
I have set a trigger on the "results" slide that says the following:
Action: Change state of
On Object: rectangle
To stat: Selected
When: Timeline starts
Object: 2,3 Results Slide
On Condition: Variable 1 = = Equal to False
And that is where my question lies - does it matter if I set the object as the slide or the rectangle?
ie: Object: rectangle or Object: 2,3 Results Slide
It seems to work both ways.
- JamieMorganCommunity Member
You'd want the object to be when you want the trigger to fire. Having it occur at the start of the rectangle or the start of the slide may be 2 different things in some cases. Granted, if the rectangle comes on at the start of the slide, then they both will function in the same manner. However, if the rectangle doesn't come on the slide until 3 or 4 seconds in - then the trigger won't fire until that time as that would be the start of the rectangle.
If I'm wanting triggers to fire when a slide first loads, then I always will use the timeline starts for the slide itself.
Phil,
The funny thing is, it's based off of an example Arlyn did back in the beta. And after I had spent an hour "figuring out" how to do it using Arlyn's example, I discovered a file from last summer where I had "figured out" the exact same thing. Ugghh...
Mike
- PhilMayorSuper Hero
I have "programmed" in selected state a couple of times and then had that DOH moment when you realise it is already there
- WilliamCarpe328Community Member
Mike I want to say Thank You 3 years + later that your test module helped me out.
Thanks for popping in to share William and I'm glad to hear it.
- KristianChen1Community Member
You could convert the page to freeform and set the object as a part of a pick one or pick many freeform question, without correct or incorrect answers. That will allow you to select and deselect any object.
- LynLucovsky-4aeCommunity Member
A solution that stands the test of time! Toggle variable worked perfectly for me today; thanks Mike Enders!
- BenjiWilson-415Community Member
Thanks for sharing the file Mike.
Related Content
- 5 months ago
- 5 months ago