help with getting an object to show (change to normal state) when all buttons are visited

Aug 16, 2021

I'm able to get an object to hide (change to hidden state) when all buttons are visited, but for some reason I cannot get an object (7 CTA 2) to show (change to normal state) when all buttons are visited.

I've tried a few different triggers (which I left so you can see), but cannot figure this out!

Thanks!

6 Replies
Walt Hamilton

There are several things you may want to consider.

You grouped a text box and a rectangle. then add a trigger to each of the items. Groups don't play nicely with anything, but especially not with triggers and states.  Your triggers are already written for the individual elements, so at the very least, you don't need the group. I would also get rid of the text box, and just place the test on the rectangle. One object, one trigger; simpler things work better in SL.

The real problem, though is the Hidden and Disabled states you have created. If an object is in a hidden state, SL makes it invisible. By creating your own Hidden state, you have interfered with that normal function. You were fortunate to get away with it on the disappearing text box, but it caused a corruption in the appearing text box. You need to edit the states of all those objects, and delete both the Hidden and Disabled states. Then you need to delete the 7 CTA 2 box and recreate it.

Becca Levan

Hey there, Genevieve!

Walt hit the nail on the head, but I wanted to share my revised file in case it helps! Here's what I did:

  1. Removed the grouping
  2. Removed both text boxes 
  3. Removed the Hidden state for 7 CTA 1 box
  4. Added a Visited state for 7 CTA 1 box
  5. Cleaned up the unused triggers

Looking forward to hearing if this works for you!

Genevieve Hones

So it doesn't function properly...when I previewed the samplecopy file, a hand icon appears when you hover over the CTA and the second state shows when you click it.

Note: I wanted the text and green outline separate b/c of animations (I don't like the text to appear when the outline does), but will be OK with one object if we can get it to work.

Any ideas why this hand icon/trigger is present?  I even tried duplicating in a separate file and the same thing happened.

Becca Levan

Hello again, Genevieve!

Happy to keep at this with you! I removed the built-in Visited state — this was making it clickable and showing the hand icon and created a custom All Visited state instead.

To get the green rectangle to come in before the text, I readded a text box inside the rectangle and delayed the entrance on the timeline a bit. Feel free to adjust it to meet your expectations!

Hope that helps!