cgkineo / adapt-submitAll

Adapt extension that allows all questions in an article to be submitted by clicking a single button

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

adapt-submitAll

Submit All is an extension that allows all questions in an article to be submitted in one go via a single submit button.

Submit All in action

The extension will hide the 'buttons' <div> for all the questions within the article. It will then append its own submit button after either the last block in the article or the one specified in _insertAfterBlock.

Attributes

The following attributes are set within articles.json.

_submitAll (object)

The Submit All object. It contains the following settings:

_isEnabled (boolean)

Turns on and off the extension.

_insertAfterBlock (string)

If you want the submit button to be appended to a specific block within this article, insert the block ID here. Leave blank to default to the last block in the article.

Notes

  • You should ensure that all questions within the article are set to 'do not show feedback' (either by setting _canShowFeedback to false on the individual question components or - if an assessment article - by setting _questions._canShowFeedback to false in the article's _assessment configuration). If you don't, all the feedback will be shown at once which is unlikely to be desirable...
  • Since the standard button group for each question gets hidden, the user will have no way of accessing the 'correct answer' functionality.

Author / maintainer: CGKineo
AAT support: No
Accessibility support: WAI AA
RTL support: Yes
Cross-platform coverage: Chrome, Chrome for Android, Firefox (ESR + latest version), Edge, Safari for macOS/iOS/iPadOS, Opera

About

Adapt extension that allows all questions in an article to be submitted by clicking a single button

License:GNU General Public License v3.0


Languages

Language:JavaScript 90.8%Language:Handlebars 5.0%Language:Less 4.2%