[ADD] survey_dropdown_simple_choice
Some checks failed
pre-commit / pre-commit (pull_request) Failing after 1m41s
tests / test (pull_request) Successful in 2m1s

Display "Multiple choice: only one answer" (simple_choice) survey
questions as a dropdown list instead of radio buttons, per question.

The native radios are kept (hidden by CSS) and still carry the answer:
the dropdown only clicks them, so validation, conditional questions,
"Other" comment, auto-submit and AJAX submit are handled natively.
In review / print mode, only the selected and correct answers are
displayed. Native rendering is kept when suggested answers contain
images.

Assisted-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-10-20 19:31:28 +02:00
parent e76f03f9a5
commit b7cba7d6dd
10 changed files with 224 additions and 0 deletions

View 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": "16.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,
}