Opening and Closing a Table of Contents

Greetings all. I'm new to the forum.


I have a quick question about actions on a button:


In my title, I have inseretd a button with on-click action to reveal the table of contents.


I would like to have students click the same button to close (hide) the table of contents. I have not been able to figure out how to get that to happen.


Any ideas?

Discussions have been disabled for this post