Skip to main content
Drupal is a registered trademark of Dries Buytaert
Release: Views Bootstrap 5.5.4 — Minor update available for module views_bootstrap (5.5.4). Release: Rightup theme 1.0.3 — Minor update available for theme vartheme_bs5_rightup (1.0.3). Release: CommentOn 1.0.6 — Minor update available for module commenton (1.0.6). Release: ChatGPT Ads 1.0.3 — Minor update available for module chatgpt_ads (1.0.3). Release: Opensolr Search 5.1.3 — Minor update available for module opensolr_search (5.1.3). Release: ServiceM8 Webform Integration 1.2.1 — Minor update available for module servicem8_webform (1.2.1). Release: PostfixAdmin 1.0.0 — Initial release available for module postfix_admin (1.0.0)! Release: ip_analyser 1.0.3 — Minor update available for module ip_analyser (1.0.3). Module Revived: Swagger-PHP OpenAPI 3 documentation generator 1.0.0 — Module swagger_php updated after 10 months of inactivity (1.0.0). Security Coverage: Microsoft Azure AI — Module ai_provider_azure now has official Drupal security advisory coverage.

Webform Quiz

Security covered

Part of the Webform ecosystem · 161 projects

View on drupal.org

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.

Depends on

Dependencies of the latest stable release

No dependencies recorded for this project.

Required by

Tracked projects that depend on this one

No tracked projects depend on this one yet.

Activity

Tracked releases
4
Tracked since
Apr 2023
Latest release
2 years ago
Releases (12 mo)
0
Maintenance
Dormant

Release Timeline

Releases

Version Type Core Release date
8.x-3.0-rc1 Pre-release Aug 11, 2024
8.x-3.x-dev Dev May 14, 2024
8.x-2.1 Stable Jul 19, 2023
8.x-2.0 Stable Apr 16, 2023