save.activity - Events - Author API

Author API Events


Fires before an Activity is to be saved.

You would want to be notified about this event firing, because you might want to display your own custom save dialog or you might want to run additional validation on the current Activity before saving, for example.

When the event has fired, you can use event.preventDefault() to prevent the Activity from being saved.


authorApp.on('save:activity', function () {
    console.log('This code executes before an Activity is to be saved.');

Callback arguments

  • activityJson object

    JSON of the Activity to be saved.

Related articles

Was this article helpful?

Did you arrive here by accident? If so, learn more about Learnosity.