Install

Works with Drupal: ^8.8 || ^9 || ^10

Using Composer to manage Drupal site dependencies

Alternative installation files

Download tar.gz 32.28 KB
MD5: 9c8664ff549dbb716fa2ae306865ec89
SHA-1: 0fa81be0ba7ee3ca7088a016b537573397b9b54f
SHA-256: 0c53accc3a3c610cc4a9bd8766ce327a37cbbdac0d30917a38ebfd8b1286bc31
Download zip 60.71 KB
MD5: 3d76b55c27e1c012211dfab9997d7379
SHA-1: c87976515486941b53d0694473ab6fe36323ef33
SHA-256: 49e447e95f92cc473919a4183a6ad993117d1b265b4be384eb08a6c7ec07294d

Release notes

### About this Module

Build quizzes using the Webform module and its native flow.
With native Twig or decoupled UI.
Use the JSON:API module and Webform REST module to work as usual with Webforms via decoupled schema.

Provides elements: checkbox, radios, text field, date, select, image select.

Provides "quiz" and "survey" modes.
Quiz - is like "all or nothing," the answer must be strictly correct to get a score.
Survey - any answer can be correct and provide its own score.

### Installing the Webform Quiz Module

1. Copy/upload the webform_quiz module to the modules directory of your Drupal installation.

2. Enable the 'Webform Quiz' module and desired sub-modules in 'Extend'.
(/admin/modules)

3. Build a new quiz (/admin/structure/webform), click the "Add quiz" button.

### v3 Updates

The main goal is to have a new "survey" mode where options of answers (checkboxes, radios, etc.) have their own score. This means options can work like before with correct answer mode, or can be switched to a mode where there is no correct/wrong answer, but different scores are given for each answer. Single option elements like textboxes will still work the old way—"all or nothing."

- Survey mode: checkboxes, radios, and other options have their own score for each answer.
- Results page shows scores per section.
- PDF generation for visitors to download results.
- Code improvements and bug fixes.
- Fixed "Notice: Undefined index: passing_score" and "Undefined index: passing_score_message."
- Made "Number of points" a common field for all element types.
- Removed annoying bug with extra empty element being added.

There are breaking changes, but no automatic migration is not planned. For manual migration, the admin will have to visit each Quiz of v2 they had, fill in scores per Element again, and save.

### v2 Updates

v2 was developed for www.codpa.org.ua

- Drupal 8.8+ support.
- Checkbox support fix.
(https://www.drupal.org/project/webform_quiz/issues/3225190)
- New elements: Date, Select, TextField, ImageSelect (as submodule), WebformQuizWizardPage.
- Lots of refactoring and bug fixes.
- All elements now support multiple values as correct answers. TextField supports multiple answers separated by ';;'. Date now has no UI for multiple answers.
- WebformQuizWizardPage is for wrapping up each question into a separate step/page and applying CSS styling.

Created by: mykola dolynskyi
Created on: 11 Aug 2024 at 18:20 UTC
Last updated: 11 Aug 2024 at 18:20 UTC
Bug fixes
New features

Other releases