saveActivity - Methods - Author API

Author API Methods

saveActivity()

Saves the current Activity being edited.

You would want to use this method so that you can programatically save the Activity being edited with your own save button in your application, for example.

Examples

var hasSaved = authorApp.saveActivity();
console.log(hasSaved);

Arguments

None.

Return value

Type boolean

Returns true if successful.

Returns false if unable to save the Activity. For example, when not in the Activity edit view or no changes were made to the Activity.

Caveats

The Activity to be saved is not persisted in the Item bank if config.activity_edit.save.persist option is false.

Was this article helpful?

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