Skip to main content
Known Participant
January 26, 2011
Question

How do I create a toggle (hide/show) button in Captivate 5?

  • January 26, 2011
  • 1 reply
  • 10172 views

What is the best method to create a button that will hide / show a particular caption? I looked into using an advanced action, but have not been successful in indicating the correct variable / control statement to make it work.

Anyone have a button with this purpose developed already? I would love to be able to copy/paste it into into my piece and just change the names to make it work?

(How lovely that would be!!!:)

Thanks in advance!

-Kate (cgoebelx)

    This topic has been closed for replies.

    1 reply

    Lilybiri
    Legend
    January 26, 2011

    Hello,

    I created an advanced action for a toggle button for you (see screenshots). There is one user variable v_visib that has an initial value of 0 and the Text Caption was initially invisible. By attaching this action to a button, you can toggle the visibility. It is not possible to export/import an advanced action, so I'm afraid you will have to recreate it.

    I hope this is what you wanted?

    Lilybiri

    cgoebelxAuthor
    Known Participant
    January 26, 2011

    Hello Lilybiri,

    Thank you for responding and yes, I believe this is exactly what I'm trying to accomplish!

    Since it is the first time I’ve ever had to use the Advanced Actions in Captivate before, I’m having an issue re-creating the screen shots you sent me verbatim. Here is how far I was able to get before I noticed that the v_visib “if” statement is not “selectable” in the “else” piece of the statement.

    Do I need to “save” the “if expression” before I’m able to select it as a variable in the “else section”?

    Thank you for all of you assistance, it is MUCH appreciated!

    Sincerely,

    Kate (cgoebelx)

    Mr_TD
    Inspiring
    January 27, 2011

    Hi there,

    you can enter all you need in the if - statement.

    Without saving you can click the else "bar" in the lower part and continue to enter your information there.

    Best TD