Public Method Items API

questions()

Returns an object containing a list of all Questions in the assessment. Each key in the return object is the Question response ID, and allows you to access any Question interface in the assessment.

You would want to use this method so that you can access all Questions and list them in your application, for example.

Examples

var questions = itemsApp.questions();
console.log(questions);

Arguments

None.

Return value

object

An object containing each Question interface available in the assessment, keyed by their response IDs.

Related articles

  • List of all Question methods
  • The question() method, which allows you to retrieve the interface for a specific Question.
  • The features() method, which allows you to retrieve the list of Feature references, so that you can access the Feature interfaces.
Was this article helpful?