Initialization Option Items API

submit_criteria

Define the criteria the learner needs to meet in order to submit their assessment.

You would want to specify this option so that you can prevent learners from submitting their assessment until they have attempted a minimum percentage of Questions, for example.

By default, the assessment player imposes no criteria to submit the assessment.

Examples

// Learners must attempt 50% of the Questions in the assessment to be able to submit their responses.
var initializationOptions = {
    "config": {
        "configuration": {
            "submit_criteria": {
                "threshold": 50,
                "type": "attempted"
            }
        }
    }
};

// Learners must answer at least 75% of Questions in the assessment correctly to be able to submit their responses.
var initializationOptions = {
    "config": {
        "configuration": {
            "submit_criteria": {
                "threshold": 75,
                "type": "valid"
            }
        }
    }
};

Values

Request object key config.configuration.submit_criteria

Type object

This object has the following properties which can be configured.

  • threshold number

    Specify the percentage of Questions that must meet the type criteria for the submit_criteria initialization option.

  • type string

    Specify the type of action the learner must perform for each Question when using the submit_criteria initialization option.

Was this article helpful?