Skip to main content
Participant
June 5, 2023
Answered

Accordion Menu Help

  • June 5, 2023
  • 2 replies
  • 561 views

Hi all!

 

I'm still very new to this software so thank you in advance for your patience if this is a silly question and I'm missing something obvious! I'm attempting to create an accordion style menu on a slide. I've built the 5 buttons and have given them each down and visited states so that if any one button is selected, the information drop down appears.

 

Where I'm running in to trouble is my desire to have the buttons be collapsible after being opened. Once something has been selected and is in its "Visited" state, I want users to be able to click on the original button to close the Visited state and return to the original slide so they can select another button. 

 

Is this something that is actually possible? It feels like it should be! I'm attaching some images to demonstrate what I'm trying to do here, if more info is needed I'm happy to clarify!

This topic has been closed for replies.
Correct answer Kaitlin29897472eix8

I found a solution! For anyone looking to solve the same problem, this youtube video was extremely helpful! https://www.youtube.com/watch?v=q72erxHjJd8

2 replies

Kaitlin29897472eix8AuthorCorrect answer
Participant
June 6, 2023

I found a solution! For anyone looking to solve the same problem, this youtube video was extremely helpful! https://www.youtube.com/watch?v=q72erxHjJd8

RodWard
Community Expert
Community Expert
June 5, 2023

Don't use the built in Visited state.  How that state works is often misunderstood.  Think of it like the visited state on hyperlinks where once you have visited link at least once then the link will be purple instead of the default unvisited blue colour.  The problem with the Visited state in Captivate's Object States is that you don't have full control of it (like the purple colour on visited hyperlinks).

 

Your best course of action here is to create a new Custom Object State, call it whatever you like (as long as you don't call it Visited) and then use that object state in your interaction.  

 

In fact because the Visited state often interferes with the way object state interactions work, it's common practice to just remove it entirely.

Participant
June 6, 2023

Hi Rod! Thanks so much for your advice. For future reference, when using a custom "Open" state or something of the like, will I then be able to add buttons that navigate back to the default state?

RodWard
Community Expert
Community Expert
June 6, 2023

You can use buttons to call any custom state you add, and also to call the default Normal state.  The Visited and Over states won't work as expected if you try and call them from an Advanced Action because they are designed to work in very specific ways.  So the rule of thumb with Object States is to create them yourself and name them according to what you want them to do (avoiding the names that Captivate reserves for its own inbuilt object states).