Skip to main content
New Participant
November 17, 2015
Answered

Captivate 9 - Trying to toggle between an objects' states when a user clicks on that object?

  • November 17, 2015
  • 1 reply
  • 665 views

Trying to toggle between an objects' states when a user clicks on that object? I have successfully used Object State function to change the object to a different state, but I need it to return to its Normal state when it is clicked on again from the changed state, and then continue to toggle each state when clicked. This is for a flashcard interaction. I can do this using multiple objects and hide/show, but I'd like to do this with single objects and states.

This topic has been closed for replies.
Correct answer Lilybiri

Are you talking about custom states or InBuilt states. Which type of action did you use: a simple or an advanced/shared action?  If you are simply toggling between two states, use the approach I described in this blog post:

1 action = 5 Toggle Buttons - Captivate blog

You'll probably need a user variable to track the state, but you can use the shared conditional action described in this blog post.

1 reply

Lilybiri
LilybiriCorrect answer
Brainiac
November 17, 2015

Are you talking about custom states or InBuilt states. Which type of action did you use: a simple or an advanced/shared action?  If you are simply toggling between two states, use the approach I described in this blog post:

1 action = 5 Toggle Buttons - Captivate blog

You'll probably need a user variable to track the state, but you can use the shared conditional action described in this blog post.

New Participant
November 17, 2015

Thank you for your quick reply! That solution seems to have worked. I am using custom states and advanced conditional action. Thanks again!

Lilybiri
Brainiac
November 17, 2015

Why not try a shared action, you can reuse it everywhere?