View Issue Details

This issue affects 1 person(s).
 2
IDProjectCategoryView StatusLast Update
20833Bug reportsSurvey editingpublic2026-11-25 13:37
Reporterc_schmitz Assigned ToHaythem  
PrioritynoneSeverityminor 
Status resolvedResolutionfixed 
Product Version7.9.x 
Summary20833: New editor: '... > View > Question codes' changes the survey setting, so participants see question numbers and codes
Description

In the new editor, the top bar menu '...' > View > 'Question codes' looks like an editor display option. But the toggle writes the survey setting showqnumcode (TopBarActions.js handleToggleQuestionCodes, converted by TransformerInputSurvey convertShowQNumCode): turning it on sets 'Question number and code' to B (show both), turning it off sets X (hide both).

As a result participants see the question number and code in front of every question (e.g. '1 age') once an administrator only wanted to see the codes while editing. Turning it off also overwrites a previously chosen setting such as 'Show number only'.

Steps To Reproduce
  1. Open a survey in the new editor (Presentation setting 'Question number and code' = hide both).
  2. Click ... > View > Question codes.
  3. Preview the survey: each question now shows its number and code.
  4. Check lime_surveys.showqnumcode: changed from X to B.
Additional Information

Expected: the toggle only shows the codes in the editor and does not change what participants see (or it is clearly labelled as a survey setting). Found while documenting question codes for the manual.

TagsNo tags attached.
Bug heat2
Complete LimeSurvey version number (& build)7.9.1
I will donate to the project if issue is resolvedNo
Browsernot relevant
Database type & versionnot relevant
Server OS (if known)not relevant
Webserver software & version (if known)not relevant
PHP Versionnot relevant
Git branch / Pull Request URLhttps://github.com/LimeSurvey/LimeSurvey/pull/5554

Users monitoring this issue

There are no users monitoring this issue.

Activities

guest

guest

2026-11-25 13:33

viewer   ~87958

Fix committed to master branch: http://bugs.limesurvey.org/plugin.php?page=Source/view&id=41473

Related Changesets

LimeSurvey: master eb326311

2026-11-25 13:33

haythemCH

Committer: GitHub


Details Diff
Fixed issue 20833: Showing question codes in the new editor also showed question numbers and codes to participants (05554) Affected Issues
20833
mod - editor/src/components/QuestionTypes/ArrayQuestion/ArrayColumnsTitles/ArrayColumnTitle.js Diff File
mod - editor/src/components/QuestionTypes/ArrayQuestion/ArrayColumnsTitles/ArrayColumnsTitles.js Diff File
mod - editor/src/components/QuestionTypes/ArrayQuestion/ArrayRows/ArrayRow.js Diff File
mod - editor/src/components/QuestionTypes/ArrayQuestion/ArrayRows/ArraySubQuestionNumberAnswers.js Diff File
mod - editor/src/components/QuestionTypes/ArrayQuestion/ArrayRows/ArraySubQuestionRadioAnswers.js Diff File
mod - editor/src/components/QuestionTypes/ArrayQuestion/ArrayRows/ArraySubQuestionTextAnswers.js Diff File
mod - editor/src/components/QuestionTypes/QuestionModes/OptionQuestionEditMode.js Diff File
mod - editor/src/components/QuestionTypes/RankingAdvancedQuestion/RankingAdvancedQuestionSubquestions.js Diff File
mod - editor/src/components/QuestionTypes/RankingQuestion/RankingQuestionSubquestion.js Diff File
mod - editor/src/components/SideBar/QuestionContextMenu.js Diff File
mod - editor/src/components/SideBar/SideBarRow.js Diff File
mod - editor/src/components/SideBar/SideBarRow.test.js Diff File
mod - editor/src/components/SurveyStructure/RowQuestionsList.js Diff File
mod - editor/src/components/SurveyStructure/RowQuestionsList.test.js Diff File
mod - editor/src/components/TopBar/TopBarActions.js Diff File
mod - editor/src/helpers/constants/constants.js Diff File
mod - editor/src/hooks/useToggleQuestionCodes.js Diff File

Issue History

Date Modified Username Field Change
2026-11-07 22:16 c_schmitz New Issue
2026-11-12 14:45 c_schmitz Status new => assigned
2026-11-12 14:45 c_schmitz Assigned To => Haythem
2026-11-13 14:51 Haythem Status assigned => ready for code review
2026-11-13 14:51 Haythem Git branch / Pull Request URL N/A => https://github.com/LimeSurvey/LimeSurvey/pull/5554
2026-11-25 13:33 haythemCH Changeset attached => LimeSurvey master eb326311
2026-11-25 13:33 guest Note Added: 87958
2026-11-25 13:33 guest Bug heat 0 => 2
2026-11-25 13:37 tibor.pacalat Status ready for code review => resolved
2026-11-25 13:37 tibor.pacalat Resolution open => fixed