View Issue Details

This issue affects 1 person(s).
 4
IDProjectCategoryView StatusLast Update
20889Bug reportsLimeSurvey Websitepublic2026-11-24 12:41
Reporterboyingliu.01 Assigned To 
PrioritynoneSeverityminor 
Status newResolutionopen 
Product Version7.10.x 
Summary20889: No feedback when selecting more options than max_answers in a multiple choice question
Description

Steps to reproduce:

  1. Create a multiple choice question (M or P)
  2. Set "Maximum answers" (max_answers) to 2
  3. Preview the survey and tick 3 options

Actual result:
Nothing happens. The user only learns about the violation when submitting
the last page of the survey, so on a long survey they have to scroll back
to find the question that is over the limit.

Expected result:
The third selection should be blocked, with a visible message near the
question. Submitting should also be blocked if the question is already
over the limit (for example from a restored answer).

Environment:
LimeSurvey 7.10.0+261109
PHP 8.3, MySQL 8.0

Pull request:
https://github.com/LimeSurvey/LimeSurvey/pull/5594

Steps To Reproduce

Steps to reproduce

(Replace this text with detailed step-by-step instructions on how to reproduce the issue)

Expected result

(Write here what you expected to happen)

Actual result

(Write here what happened instead)

TagsNo tags attached.
Bug heat4
Complete LimeSurvey version number (& build)7.10.0+261109
I will donate to the project if issue is resolvedYes
Browserchrome
Database type & versionmysql 8.0.46
Server OS (if known)WSL2 / Ubuntu 22.04
Webserver software & version (if known)
PHP Version8.3.37
Git branch / Pull Request URL

Users monitoring this issue

boyingliu.01

Activities

boyingliu.01

boyingliu.01

2026-11-24 12:41

reporter   ~87935

Steps to reproduce:

  1. Create a multiple choice question (type M or P)
  2. Set "Maximum answers" (max_answers) = 2
  3. Preview the survey and tick 3 options

Actual result:
Nothing happens. The user only learns about the violation when submitting
the last page of the survey, so on a long survey they have to scroll back
to find the question that is over the limit.

Expected result:
The third selection should be blocked, with a visible message near the
question. Submitting should also be blocked if the question is already
over the limit (for example from a restored answer).

Environment:

  • LimeSurvey 7.10.0+261109 (DB schema version 718)
  • PHP 8.3.37
  • MySQL 8.0.46
  • Ubuntu 22.04.5 LTS (WSL2)
  • Chromium (headless, via Playwright); Firefox and Safari not tested

Pull request:
https://github.com/LimeSurvey/LimeSurvey/pull/5594

Issue History

Date Modified Username Field Change
2026-11-24 12:41 boyingliu.01 New Issue
2026-11-24 12:41 boyingliu.01 Issue Monitored: boyingliu.01
2026-11-24 12:41 boyingliu.01 Bug heat 0 => 2
2026-11-24 12:41 boyingliu.01 Note Added: 87935
2026-11-24 12:41 boyingliu.01 Bug heat 2 => 4