Public Method Author API


Sets the source information of the Item being edited. This source content is only used for authoring purposes and will not be shown or used in assessments.

You would want to use this method so that you can programatically set a default value for the source in all Items, for example.


var hasUpdatedSource = authorApp.setItemSource("My source content.");


  • source string
    The source content of the Item.

Return value


Returns true if successful.

Returns false if unable to set the Item source, for example, when not in the Item editor view or the passed value is not valid.

Related articles

Was this article helpful?