Problem/Motivation

I create new quiz type and when I create new quiz from this quiz type, i can't submit.
And I get error as bellow:

quiz type error

Steps to reproduce

- Create new quiz type called: Writing
- Create quiz from new quiz type
- Fill data require and submit

CommentFileSizeAuthor
#2 quiz_type_fix.png15.59 KBnguyenphan
quiz_type_error.png58.63 KBnguyenphan

Issue fork quiz-3240676

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

nguyenphan created an issue. See original summary.

nguyenphan’s picture

StatusFileSize
new15.59 KB

However, I can create quiz when i disable option: Result options and Quiz terms at form

error

djdevin’s picture

Version: 6.0.0-alpha4 » 6.x-dev

As a workaround instead of disabling them, edit the quiz type form display, and on those fields set "Default paragraph type" to " - None -"

The issue is that a new quiz type has them defaulting to 1 value so it makes them required.

smustgrave’s picture

Version: 6.x-dev » 7.0.x-dev
smustgrave’s picture

Verified still an issue in 7.0.x

Question do we want to default any fields in the quiz type? Should we remove all fields and add to a recipe

smustgrave’s picture

Version: 7.0.x-dev » 8.0.x-dev

  • smustgrave committed 9e2fb59a on 8.0.x
    feat: #3240676 Can't create quiz with new quiz type
    
smustgrave’s picture

Status: Active » Fixed

Will be fixed in 8.0.x

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.