Hide mark complete button in combination with articulate script

Home Forums Legacy Support Support queries Other issues Hide mark complete button in combination with articulate script

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #14009
    fsmeets
    Spectator
    Hello, 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.
    #14186
    Anshuman Sahu
    Keymaster
    You 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 ) :  
    #16595
    fsmeets
    Spectator
    Thanks 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();  }
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.