- Posts: 40
- Thank you received: 1
Ask the community, share ideas, and connect with other LimeSurvey users!
<div class="embed-responsive embed-responsive-16by9"> <video autoplay="autoplay" id="myvideo"><source src="path_to_video.mp4" type="video/mp4" /> Browser does not support this format.</video> </div> <script type="text/javascript" charset="utf-8"> $(document).ready(function() { // Hide the "Next" button $('#ls-button-submit').hide(); var vid = document.getElementById("myvideo"); // Set a volume if necessary vid.volume = 0.3; // When video is watched show the NEXT-button and proceed to the next question vid.onended = function() { // Show the "Next" button $('#ls-button-submit').show().trigger('click'); } }); </script>