Only mark unit complete when moving to NEXT unit

Home Forums Legacy Support Support queries How-to & Troubleshooting Only mark unit complete when moving to NEXT unit

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #131139
    dantwah
    Spectator
    Hi! The auto mark complete on next unit is not doing what I would like it would do. And so do some other ones (https://vibethemes.com/documentation/wplms/forums/topic/when-click-on-mark-this-unit-complete-goes-to-next-unit/) It confuses my users I want it to work in this manner: Current unit is only marked as complete when someone clicks on "next unit" or when someone leaves the unit and browses to a later unit (not an earlier unit). Is there a way to edit the snippet (in this tip: https://wplms.io/support/knowledge-base/auto-mark-unit-complete-when-open/)? I have tried some stuff. Like triggering a click on mark unit complete when next unit is clicked but it is not executed in jquery. Would be awesome to have this operational.
    #131223
    H.K. Latiyan
    Participant
    Hi, Sorry this is not available as of now. When a unit is opened then a unit_traverse call is executed and then we only have the current unit and not the previous unit and therefore we can only manipulate the current unit and not the previous unit.  
    #172261
    dantwah
    Spectator
    Hi! I am still looking at this issue, too many student of us are getting confused by how the auto mark complete of units is working. I was trying some jquery. Very simple. logic is that when the next button is clicked the marked unit as complete is also triggered and the unit is marked as complete. It not really working though. Any thoughts on this, and a simple workaround to make units be marked as complete only when someone is actually moving towards the next unit? this is the code I used: jQuery(document).ready(function ($) {   $('#next_unit').click(function(){   $('#mark-complete').trigger('click'); }); });
    #172378
    Diana
    Participant
    @dantwah But this is how it is working. If I understand your issue right. If the auto mark unit complete is enabled. So when the user clicks on the next unit. Then it triggers a call unit_taverse that unit is marked as complete.
    #172554
    dantwah
    Spectator
    The way is works now is that a unit is marked as complete while it is still open. So someone in unit 1 click next unit than unit 2 opens and this one is then marked as complete. That is not correct, unit 1 should be marked as complete and unit 2 should only be marked as complete after the next button is pressed.
    #172653
    Diana
    Participant
    @dantwah, For this, you can try an alternative if you have media in the units. Then using the tip you can trigger the unit complete only when media is completed. @HK already told you that the tick is triggered on unit_traverse call and at that time we cannot check the status of the previous unit so that we can click on unit complete.  
    #173032
    dantwah
    Spectator
    Hi! Thanks for the reply. It would be great if there could be something to overcome this issue, it is just very confusing. I did see this tip, though our videos are loaded through iframe (jwplayer) so this won't work i guess. Kind regards
    #173093
    Diana
    Participant
    @dantwah, For now, I can only suggest you use the feature -"unit complete when media is complete" Keeping your request in mind we will try something else to overcome this
Viewing 8 posts - 1 through 8 (of 8 total)
  • The topic ‘Only mark unit complete when moving to NEXT unit’ is closed to new replies.