Disable Volume Button on Slides without Audio

Jun 13, 2022

Hello,

I did some research on this forum, and based on responses from about 5 years ago, it looks like the volume button is global and you can't have it on some slides, but not the others. 

Is that still the case? 

Thank you,

Anya 

2 Replies
John Morgan

Hi, Anya!

You’re correct! The volume button is global to your Storyline player so it’s available to learners throughout the course, but if you’re familiar with Javascript there is a work around to remove it on a slide by slide basis.

Add this JavaScript to the slide in question:
document.getElementById('volume').style.display = 'none';
Caveat: you have to turn it back on in the other slides w/ the same method.

A few other customers have requested a feature to remove the button when there is no audio, I'll include this discussion in that request. 

Thanks for reaching out!