getItemSource - Methods - Author API

Author API Methods

getItemSource()

Gets the current source of the Item being edited. The source field can be used by Authors to provide information on the source of the Item's content, for example, the textbook where the material originated.

You would want to use this method so that you can compile a bibliography of sources for the current assessment, for example.

Examples

var itemSource = authorApp.getItemSource();
console.log(itemSource);

Arguments

None.

Return value

Type string

The source for the current Item.

Type boolean

Returns false if not in the Item editor view.

Related articles

Was this article helpful?

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