I am trying to create a content type Quiz Question
that has a bunch of regular plain text fields. I also want to add a field that acts as a list of Answers
. Each Answer
should have a plain text entry
and a boolean
entry.
The data model for a node will look something like this:
{ "Question": "Does Drupal rock?", "Answers": [ { "Answer": "Yes", "IsAnswerCorrect": true }, { "Answer": "No", "IsAnswerCorrect": false }, { "Answer": "You're a rock", "IsAnswerCorrect": false } ] }
Is there any way to do this without creating custom field types or entities using separate custom modules and plugins. Surely there must be a module for this?