Skip to main content
December 20, 2016
Answered

Smart Shape with Two different actions?

  • December 20, 2016
  • 1 reply
  • 446 views

I would like to create a large smart shape which when clicked will open the table of contents.

I would also like this same shape to close the Table of contents when clicked again.

Like a toggle switch.

Click = TOC opens

Click = TOC closes.

I need the large smartshape buttons because the users are visually impaired.  That's why I can't use the default small tab located in the upper left area of the screen.

    This topic has been closed for replies.
    Correct answer Lilybiri

    Thanks Lily.

    I did something that worked. Tell me if this has any negative ramifications:
    I used a smartshape and "use as button" was checked.

    On Success: Toggle

    Variable: cpCmdTOCVisible

    Timing: display for rest of project.


    Do not forget to put it 'always on top' when timing for the rest of the project.

    That is the simplest work flow, indeed. However: the button will not show the status, which may not be a problem. The biggest problem you have since you are still on CP8, is that there is no way to pause the slide while the TOC is open. You have to consider that: is it OK that the slide will continue to play and eventually go to the next slide? Do you have another way of pausing the slide?

    The toggle command was added with CP7, didn't exist when I wrote the article for CP6. It used to be:

       Expression cpCmndTOCVisible = 1 - cpCmndTOCvisible

    Reflect about the Pause: do you want the button to pause the slide while the TOC is open or not?

    1 reply

    Lilybiri
    Legend
    December 20, 2016

    I explained in detail how to create such a toggle button in this blog post:

    1 action = 5 Toggle Buttons - Captivate blog

    The explanation is for Captivate 9 which has multistate objects. Let me know if you use another version

    December 20, 2016

    Hi Lily:

    I'm on Captivate 8.0.3.290

    Lilybiri
    Legend
    December 20, 2016

    Have a look at this older blog post which you can use for 8:

    Toggle Shape buttons - Captivate 6 - Captivate blog