Expandable answer list in multichoice editing
turadg - July 3, 2009 - 20:22
| Project: | Quiz |
| Version: | 6.x-4.x-dev |
| Component: | Code - Multichoice |
| Category: | feature request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | closed |
Jump to:
Description
When editing a multichoice question item, the answer list starts with 3 blanks. If you want more, you have to click "I need more answers (click "Preview" to generate more fields)" and then click Preview, to get more fields.
With some JS, a button could add a row to the Choices table without reloading.

#1
#508744: New 'choice' module more flexible than 'multichoice' that uses QuizQuestion interface need to be fixed to fix this. This tutorial may help you http://www.stellapower.net/content/ajax-ifying-drupal-node-forms to proceed on this.
#2
sivaji, thanks for the link to tutorial.
Why does multichoice have to use QuizQuestion before its form can be made dynamic?
#3
multichoice module has to be rewritten using QuizQuestion API, this is what your issue #508744: New 'choice' module more flexible than 'multichoice' that uses QuizQuestion interface says isn't it ?. Then you need to "Add the Expandable answer list" feature to rewritten multichoice module not to existing multichoice module.
Note : #508744: New 'choice' module more flexible than 'multichoice' that uses QuizQuestion interface depends on #476382: Multiple choice with 4 choices correct, only one can be chosen
#4
Oh I see. This issue doesn't strictly depend on those others, but it would probably be better to wait to implement this until those are done so it doesn't have to be repeated with a new version of multichoice.
#5
It is expandable in alpha3