Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

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

New Here ,
Nov 17, 2015 Nov 17, 2015

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.

620
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Community Expert , Nov 17, 2015 Nov 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.

Translate
Community Expert ,
Nov 17, 2015 Nov 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.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Nov 17, 2015 Nov 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!

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Nov 17, 2015 Nov 17, 2015
LATEST

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

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources
Help resources