[ADD] survey_dropdown_simple_choice
Display "Multiple choice: only one answer" (simple_choice) survey questions as a dropdown list instead of radio buttons, per question. The select is mirrored on hidden radios so that the native survey form pipeline (validation, conditional questions, "Other" comment, AJAX submit, correct answers display) keeps working. Native radio rendering is kept when suggested answers contain images and in readonly mode. Assisted-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
27
survey_dropdown_simple_choice/__manifest__.py
Normal file
27
survey_dropdown_simple_choice/__manifest__.py
Normal file
@@ -0,0 +1,27 @@
|
||||
{
|
||||
"name": "Survey Dropdown Simple Choice",
|
||||
"summary": "Display some single choice survey questions as a dropdown list",
|
||||
"description": "Adds a boolean on survey.question to display a "
|
||||
"\"Multiple choice: only one answer\" question as a dropdown list "
|
||||
"instead of radio buttons, with support for conditional questions "
|
||||
"and \"Other\" comments.",
|
||||
"author": "Elabore",
|
||||
"website": "https://www.elabore.coop",
|
||||
"category": "Marketing/Surveys",
|
||||
"license": "AGPL-3",
|
||||
"version": "18.0.1.0.0",
|
||||
"depends": ["survey"],
|
||||
"data": [
|
||||
"views/survey_question_views.xml",
|
||||
"views/survey_templates.xml",
|
||||
],
|
||||
"assets": {
|
||||
"survey.survey_assets": [
|
||||
"survey_dropdown_simple_choice/static/src/scss/survey_dropdown.scss",
|
||||
"survey_dropdown_simple_choice/static/src/js/survey_form_dropdown.js",
|
||||
],
|
||||
},
|
||||
"installable": True,
|
||||
"application": False,
|
||||
"auto_install": True,
|
||||
}
|
||||
Reference in New Issue
Block a user