.. warning::
This xblock-submit-and-compare repository is being archived. The XBlock
is moving to the xblocks-extra <https://github.com/openedx/xblocks-extra>_ repository,
which consolidates optional add-on XBlocks for the Open edX platform.
Archival: This repository will become read-only once the migration is complete. No further updates or changes will be accepted here.
Please use xblocks-extra <https://github.com/openedx/xblocks-extra>_ for all future work.
If you have any questions or concerns, please open an issue on the
xblocks-extra issue tracker <https://github.com/openedx/xblocks-extra/issues>_.
This XBlock provides a way to do an ungraded self assessment activity. It is useful for synthesis questions, or questions which require the student to answer in her own words. After the student submits her answer, she is able to see the instructor's answer, and compare her answer to the expert answer.
To install the Submit and Compare XBlock within your edX python environment, simply run this command:
$ pip install -r requirements.txtGo to Settings -> Advanced Settings and set Advanced Module List to ["submit-and-compare"].
Once the Submit and Compare XBlock is enabled in Studio, you should see it a new Component button labeled Advanced:
Click the Advanced button and you should see the Submit and Compare XBlock listed:
After you've selected the Submit and Compare XBlock, a default question will be inserted into your unit:
The question and expert answer can both be customized by clicking the Edit button on the component:
The Submit and Compare XBlock uses a simple XML-based structure as shown below:
<submit_and_compare schema_version='1'>
<body>Insert the question here. You can include html tags like <p>, <img>, etc.</body>
<explanation>Insert the expert answer here. You can include html tags like <p>, <img>, etc.</explanation>
<demandhint>
<hint>Here you can include hints for the student</hint>
<hint>Here is another hint</hint>
</demandhint>
</submit_and_compare>





