Public Method Items API

getMetadata()

Returns the metadata for all Questions in the assessment where metadata attributes have been defined.

Examples

var questionMetadata = itemsApp.getMetadata();
console.log(questionMetadata);

Arguments

None.

Return value

object

An object containing all Question response IDs and the associated metadata content.

Type definitions

WidgetsMetadata object

The metadata for each question and feature, keyed by their references.
  • [widgetReference] WidgetMetadata

WidgetMetadata object

The metadata for a question or feature.
  • sheet_reference string
  • widget_reference string

Related articles

  • The getItemsMetadata() method, the method used to get the metadata for all Items and Questions in the assessment.
Was this article helpful?