Allow for multiple result groups - not just pass or fail

Created on 13 August 2025, 2 months ago

Problem/Motivation

I need to display one of multiple different messages based on the interval user score falls into. Several of these interval groups can be marked as "pass".

Steps to reproduce

Proposed resolution

Change "webform_quiz_elements_score" element implementation to allow for unlimited score groups (intervals). This requires adding dependence on https://www.drupal.org/project/multivalue_form_element module.

Remaining tasks

  • For now there's no validation of score group settings - whether lower bound is really lower than the upper one and whether groups are non-overlapping

User interface changes

The configuration of "webform_quiz_elements_score" element looks differently and is admittedly more complicated

API changes

None

Data model changes

Structure of "webform_quiz_elements_score" configuration changes to support this use case.

Feature request
Status

Active

Version

1.0

Component

Code

Created by

🇨🇿Czech Republic milos.kroulik

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024