Add validation: quiz__options field

Created on 25 June 2022, almost 3 years ago
Updated 24 April 2023, almost 2 years ago

Problem/Motivation

Add validation to quiz__options field to make sure it corresponds with options field

For example: options have values a, b but quiz__options have a,c which is incorrect.
editor should input is_correct/feedback fields for each option

options:
  a: 'True'
  b: 'False'
quiz__options:
  a: 
    is_correct: false
    feedback: 'This answer is incorrect'
  c:
    is_correct: true
    feedback: 'This answer is correct'
📌 Task
Status

Fixed

Version

1.0

Component

Code

Created by

🇦🇺Australia jannakha Brisbane!

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

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024