Custom activity completion

Custom activity completion

by Niraj Chourasia -
Number of replies: 1

Hello Guys,

We have  one activity module for video that display like other activities shows ,when user click on activity it opens in popup user can watch video.Now when user watched full video i want to ticked the activity as completed ,right now activity is not for manual completion.

So please let me know how i can mark activity as completed through ajax call when video watched full by user ?


Thanks,


Average of ratings: -
In reply to Niraj Chourasia

Re: Custom activity completion

by Howard Miller -
Picture of Core developers Picture of Documentation writers Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers

I don't think you can.  There is a web service to mark a manual activity as complete but it is not callable by AJAX.

You could, I suppose, develop a new (local) plugin to provide a suitable web service call. It's all documented in the developer wiki but it's fairly advanced stuff. 

Average of ratings: Useful (1)