Controlling TOC using a button in captivate 8

Copy link to clipboard
Copied
Hi,
We are trying to show/hide TOC using a button. When, the user clicks the button, we were able to show the TOC using the on success-show TOC action. But is it possible to hide the TOC using the same button, but when the user clicks it again/second instance.
Please let me know the possibilities.
Thanks
Vidyalakshmi
Copy link to clipboard
Copied
To prevent the playbar from continuing, I would replace your simple action by a standard advanced or shared action. You can use the Toggle command and a system variable cpCmndTOCVisible that has only two possible values (boolean) 0 and 1:
Copy link to clipboard
Copied
Hello Vidyalakshmi,
Welcome to Adobe Forums !
This task can be achieved using the Advanced action (Conditional Action) .
You can also check Lilybiri's blog which is regarding the Play/Pause feature but is similar to what you are trying to achieve.
Custom Play/Pause button in Captivate - Captivate blog
You can also set the TOC to be overlay , it will give you a click-able area to show/hide the TOC.
Go to Project > Table of Contents> Settings and change the style to overlay.
Regards
Himanshu
Copy link to clipboard
Copied
@Himanshu Sorry to clarify: you can only toggle cpCmndTOCVisible when TOC is set in overlay, not when it is separate. And it is easier with the Toggle action I proposed, a conditional action is here not necessary. I like to keep it simple...
BTW you are pointing to a very old blog post, for toggle buttons in later versions, this one is perhaps a better link: Toggle Shape buttons - Captivate 6 - Captivate blog
Copy link to clipboard
Copied
Thanks Lieve,
Yes you are right. Using toggle will be much easier for the user.
Regards
Himanshu
Copy link to clipboard
Copied
Thanks Himanshu,
Your steps really helped me out!

