Reverting to Visited state from Selected state

Hi - I'm building an interaction with 3 black buttons. I have a visited state with a check mark and added a selected state that changes the color of the button to red.

When another button is clicked, that button should change color and the other button should revert back to the visited state (black with a check mark) and the current button should be the only red one.

But when I preview, I get the check mark on the visited state, but it stays red.

Any idea what I'm doing wrong?

Thanks!

18 Replies
Mike Enders

Steve Jones said:

When another button is clicked, that button should change color and the other button should revert back to the visited state (black with a check mark) and the current button should be the only red one.


Steve,

What is the logic you have set for this process?  Are you using triggers, or button sets?

Mike

J P

HI Mike,

I'm having a similar issue.  I have 4 buttons and I need users to click each button that will each reveal a layer of information.  When they click another button a new layer appears with new info, etc.  My problem is with the states.  I have button states for normal, hover, selected and visited, but I can't get the visited state to show up.  Do I need a trigger?  If so, what is that trigger?  I assume I need to change the state of the button to visited but when?  Thanks.

Christine Hendrickson

Hi J P,

The button should change to a visited state once its been clicked and the new layer shows. Not quite sure why this isn't working for you. Any chance your visited state is showing, but not very noticeable? Try changing the state to a color that pops, if you haven't already, and see if it changes when you view the new layer. 

If that doesn't work, do you have any other state change triggers applied to that button? 

If you'd like, you're welcome to post your .STORY file here. I'd be happy to take a look and see what's going on.

Thanks!

J P

What I discovered is that I was showing a layer, but not telling the layer I was finished with it.  So I would click one button and show a layer, then click another button and show another layer, etc. but I would never tell a layer I was finished with it so it would appear as visited.  

So I added a close button to my layer and put two triggers on it, one to hide the layer and the other to change the state of my button to visited. 

This solved my problem.  I think sometimes explaining your issue out-loud to others brings clarity...  thanks for the help though.

Phil Mayor

J P said:

What I discovered is that I was showing a layer, but not telling the layer I was finished with it.  So I would click one button and show a layer, then click another button and show another layer, etc. but I would never tell a layer I was finished with it so it would appear as visited.  

So I added a close button to my layer and put two triggers on it, one to hide the layer and the other to change the state of my button to visited. 

This solved my problem.  I think sometimes explaining your issue out-loud to others brings clarity...  thanks for the help though.


You shouldnt need a trigger to set visited stat, and layers being open will not affect the visited state, obviously something else going on here, visited in this instance means clicked and is independent of the layer.

J D

Phil Mayor said:

J P said:

What I discovered is that I was showing a layer, but not telling the layer I was finished with it.  So I would click one button and show a layer, then click another button and show another layer, etc. but I would never tell a layer I was finished with it so it would appear as visited.  

So I added a close button to my layer and put two triggers on it, one to hide the layer and the other to change the state of my button to visited. 

This solved my problem.  I think sometimes explaining your issue out-loud to others brings clarity...  thanks for the help though.


You shouldnt need a trigger to set visited stat, and layers being open will not affect the visited state, obviously something else going on here, visited in this instance means clicked and is independent of the layer.


Hi Phil,

Thats right. I have a similar issue as mentioned above, and I dont to use the close button. Is there any other work around? I cant get the visited and selected to work the way it should be..

Can I send my story file for you or Christine to have a look? 

Christine Hendrickson

Hi J D,

You're always welcome to share the .STORY file here. Myself, Phil, or others would be able to take a look and see what's causing the problem.

However, if you need to keep the file private, you're welcome to send it in a support case. If you do decide to submit the file through that form, please share the case number so I can take a look.

Thanks!

Donald Brisson

I'm having a similar problem but mine is with an image and the visited state never initializing.

I have an image which is supposed to behave like a button.

I have a total of 2 buttons, and they are both under the button set 1.A trigger in each button is placed in order to trigger the state change from "Normal" to "Selected". Unfortunately when I select the second "image" (duplicate of the first image representing a second button button) the first button reverts to the normal state rather than a visited state like a normal button would.

I've included the story file to look at.

Valerie Seely

Normal 0 false false false oNotPromoteQF /> EN-US X-NONE X-NONE I am having a similar issue with a click and revealinteraction that I built. I have 4 shapes that each have 3 states; normal,selected, and visited. When I select shape 1 the state changes to selected butwhen I click another shape 2, shape 1 remains in the selected state and doesnot change to visited until I click it again.

I have submitted the file under the following case # 00339474

Natalia Sarandakova

Hi,

I have the same problem with the change of states of a button.. How to make Selected state work, before Visited comes.. without having to see all the content on the layer. I mean, if a user clicks another button, state changes from Selected to Visited, is it possible to do that without a Close button on the layer?

Ali Goulet

Hey Natalia,

Welcome to Heroes, so happy to have you here!

This thread is a bit older, but if you could share your .story file with your current setup it'll be easier for our Community members to chime in with ideas on how to get it working the way you want. You can add it right to a comment like this: 

Thanks! ☺️