• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

Captivate 9: Turning off TOC When Quiz Starts (HTML5 output)

Community Beginner ,
Oct 12, 2018 Oct 12, 2018

Copy link to clipboard

Copied

I am trying to hide the TOC when the quiz starts; however, nothing seems to work. I've tried the simple "Hide TOC" on enter, assign TOC variable and hide TOC in an advanced action, etc. But, nothing turns it off. I can turn it off at the beginning, but then it won't display when it needs to. My output is HTML5. Any ideas? Thanks.

Views

209

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

People's Champ , Oct 12, 2018 Oct 12, 2018

Is your TOC in Overlay or separate?

Even if you can hide it (only in overlay mode) you would also need to hide the TOC Expand button,  else they could just open it back up.

You could also execute this JavaScript onEnter:

document.getElementById("toc").style.visibility="hidden";

and the to turn it back on:

document.getElementById("toc").style.visibility="visible";

Votes

Translate

Translate
People's Champ ,
Oct 12, 2018 Oct 12, 2018

Copy link to clipboard

Copied

Is your TOC in Overlay or separate?

Even if you can hide it (only in overlay mode) you would also need to hide the TOC Expand button,  else they could just open it back up.

You could also execute this JavaScript onEnter:

document.getElementById("toc").style.visibility="hidden";

and the to turn it back on:

document.getElementById("toc").style.visibility="visible";

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Oct 12, 2018 Oct 12, 2018

Copy link to clipboard

Copied

LATEST

That command only works for a TOC in overlay, not for one in separate mode.

You can replace the expand/collapse icons by a toggle button. For that reason I use to replace the icons by a custom empty image. To create a toggle button have, a look at this blog post:

1 action = 5 Toggle Buttons - Captivate blog

Of course, if you prefer JS it is up to you.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources
Help resources