Home › Forums › Legacy Support › Support queries › Other issues › Hide mark complete button in combination with articulate script
Tagged: hide mark complete button
- This topic has 2 replies, 2 voices, and was last updated 8 years, 10 months ago by fsmeets.
Viewing 3 posts - 1 through 3 (of 3 total)
-
AuthorPosts
-
December 15, 2015 at 2:31 pm #14009fsmeetsSpectatorHello, Do you have any code to share to get the following situation: I'm using the video unit type for information and vimeo video's. I'm using the general unit type for articulate quizes, but I don't want my user to skip the quiz and mark it complete, so i have added the automarkcomplete script in the articulate content. I now want to hide the manual mark complete button so the user can only progress after succesfully completing the articulate content. Is there a way to hide the mark complete button in the general unit type? and to let it be mark as completed by the articulate script, in wich case the continue button appears? thanks for your patience and support to all of the people who are requesting things and custom code like this.December 16, 2015 at 12:36 pm #14186Anshuman SahuKeymasterYou can acheive this by adding a script in your articulate that on click on particular button the mark unit link becomes appear otherwise it remain hidden . You can refer : https://wplms.io/support/knowledge-base/preparing-articulate-storyline-to-automatically-mark-unit-complete/ and can use a script . (add class disabled initially and remove it on button click ) :January 4, 2016 at 3:03 pm #16595fsmeetsSpectatorThanks Alex this worked for me! on load of the articulate content I hide the button (add javascript on first slide): window.parent.document.getElementById('mark-complete').style.visibility = 'hidden'; And on the result slide when succesful the following script is executed that automarks it complete. var mark_complete = window.parent.document.getElementById( 'mark-complete' ); if (mark_complete.onclick) { mark_complete.onclick(); } else if (mark_complete.click) { mark_complete.click(); }
-
AuthorPosts
Viewing 3 posts - 1 through 3 (of 3 total)
- The topic ‘Hide mark complete button in combination with articulate script’ is closed to new replies.