Part of the Webform ecosystem · 225 projects
This module allows you to build quizzes and surveys using Drupal's Webform module. It offers different modes for scoring, including "quiz" mode where answers must be strictly correct for points, and "survey" mode where each answer option has its own score. It provides various form elements and supports both native Drupal and decoupled implementations.
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
-
Copy/upload the webform_quiz module to the modules directory of your Drupal installation.
-
Enable the 'Webform Quiz' module and desired sub-modules in 'Extend'. (/admin/modules)
-
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.
Ask your assistant about Webform Quiz
Check compatibility with your Drupal and PHP version, maintenance and security coverage, from current release data. How it works
Depends on
Dependencies of the latest stable release
- webform Drupal core
- webform_ui Drupal core
Required by
Tracked projects that depend on this one
No tracked projects depend on this one yet.
More in the Webform ecosystem
Most installed first
Activity
Release Timeline
Releases
| Version | Type | Core | PHP | Release date | |
|---|---|---|---|---|---|
| 8.x-3.0-rc1 | Pre-release | 8–10 | Aug 11, 2024 | ||
| 8.x-3.x-dev | Dev | 8–10 | May 14, 2024 | ||
| 8.x-2.1 | Stable | 8–10 | Jul 19, 2023 | ||
| 8.x-2.0 | Stable | 8–10 | Apr 16, 2023 |