Home › Forums › Legacy Support › Support queries › How-to & Troubleshooting › [IMP] Open automatic the next unit?
- This topic has 12 replies, 8 voices, and was last updated 8 years, 1 month ago by H.K. Latiyan.
Viewing 13 posts - 1 through 13 (of 13 total)
-
AuthorPosts
-
October 27, 2015 at 10:31 am #5274ionutSpectatorI need to know if there is any solution when a student mark a unit as complete, then to be open automatic the next unit? (now, as you know, you have to mark as complete and click for the next unit. I want to skip the click for the next unit, if the unit is marked completed). Thank you, JTROctober 28, 2015 at 7:46 am #5481sandyMemberApologies as of now it is not possible.January 18, 2016 at 10:23 pm #19095ecarmonaParticipantIs it going to be possible sometime soon? I would also like to skip some clicks for my users since they seem to either ignore "mark unit complete" button because they are expecting next to do that...January 19, 2016 at 7:03 am #19152H.K. LatiyanParticipantIf you want us to add this feature in the further updates of wplms, then please make a feature request for this. Feature request link: https://wplms.io/support/forums/forum/general/feature-request/January 20, 2016 at 10:22 pm #19541jonielSpectatorI would like the same funcationality. My users are clicking next when they finish a unit and not clicking "mark unit as complete." I'd like "Next" to automatically set the unit as complete as they are obviously moving on to the next unit. Has anyway created any code to accomplish this? JeremyJanuary 20, 2016 at 10:26 pm #19542ecarmonaParticipantI created a topic in the features forum requesting for that to happen but if anyone has figured this out share the solution, my users need it.January 21, 2016 at 10:13 am #19646Anshuman SahuKeymasterThanks ecarmona for creating feature request for this . Please upvote the feature created by ecarmona .We will try adding this feature in the upcoming updates if upvoted the most .February 6, 2016 at 5:19 am #25895dcubasoySpectatorHi, use something like this: add_action('wp_head', 'add_unit_auto_complete', 9); function add_unit_auto_complete() { ?> <script> jQuery(document).ready(function () { jQuery('#mark-complete').trigger('click'); }); </script> <?php }February 6, 2016 at 1:08 pm #26060Anshuman SahuKeymasterThanks there @dcubsoy, i would like to add one more thing in that code : refer the code :
add_action('wp_head', 'add_unit_auto_complete', 9);
function add_unit_auto_complete() {
?><script>
$('.unit_content').on('unit_traverse',function(){ $('#mark-complete').trigger('click'); });
jQuery(document).ready(function ($) {
});
</script><?php
}February 10, 2016 at 5:36 pm #27453ecarmonaParticipantHi, thanks for the help. I added this in my child theme's functions.php however, it's still not working. Is there anything else i should take into consideration?February 11, 2016 at 2:37 pm #27610Anshuman SahuKeymasterWorking good at my end : http://screencast-o-matic.com/watch/cDnX2ahSZG I added the code in wplms-customizer.php file in wplms customizer plugin .March 10, 2016 at 11:02 am #35424skillomoParticipantDear Alex, I try to use this code add_action('wp_head', 'add_unit_auto_complete',9); function add_unit_auto_complete(){ echo "<script> jQuery(document).ready(function ($) { $('.unit_content').on('unit_traverse',function(){ $('#mark-complete').trigger('click'); }); }); </script>"; } But i have a problem. When i click NEXT UNIT, The NEXT UNIT automaticly Complete not CURRENT UNIT. How to fix this? ThanksMarch 11, 2016 at 6:08 am #35617H.K. LatiyanParticipantThis code works fine, refer: http://screencast-o-matic.com/watch/cDeX1i1bdW Give it a little time and the unit will be marked complete automatically. -
AuthorPosts
Viewing 13 posts - 1 through 13 (of 13 total)
- The topic ‘[IMP] Open automatic the next unit?’ is closed to new replies.