View Issue Details

IDProjectCategoryView StatusLast Update
16530Bug reportsExpression Managerpublic2020-07-28 08:36
ReporterXsaron Assigned To 
PrioritynoneSeverityblock 
Status newResolutionopen 
Product Version4.3.5 
Summary16530: Array filter takes 'Shown' in default language instead of active language
Description

When using an array filter to fill a 5 point choice array with the responses from a ranking question in a multilingual survey, the array filter uses the values from the default survey language instead of the language that the survey was started in.

Steps To Reproduce

1) Create a new survey with Dutch as the default language
2) Add English as additional language
3) Create a new question group
4) Add a ranking question
5) Add 6 response options
6) Fill in the Dutch (default language) values for the response options
7) Fill in the English (additional language) values for the response options
8) Restrict the minimum/maximum number of responses to eg. 5 as we want exactly 5 responses to be selected in the ranking
9) Add a 5 point choice array
10) Add an array filter in the Logic tab to this array with the name of the ranking question created in 4)
11) Add 5 sub questions (as we wanted 5 parameters in the ranking) for the Y-axis
12) Fill in the expression with the name of the ranking question created in 4) and have it select the first row of the submitted ranking. Let's say that 'Attributen' is the name of the question created in 4), thus the first Subquestion would be {Attributen_1.shown}.
13) Do the same accordingly for the next 4 subquestions of the question created in 9) (eg. the second subquestion will be {Attributen_2.shown} ...3.. etc.)
14) Check logic for the English version for the question created in 9) and hover the expression for subquestion 1 (Attributen_1.shown). The JavaScript will show you a the list of responses from 'Attributen' in the default (Dutch) language, however this should be the English one!
15) Preview your survey in the additional language, English
16) Select and rank 5 items for the question created in 4)

Expected behavior: The 5 point choice array is filled up with the responses from the ranking in the same language as the survey is taken, in this case English (additional language)
Actual behavior: The 5 point choice array is filled up with the responses from the ranking but in the WRONG language, the subquestion texts from the default (Dutch) language are shown instead of the actual language in which the survey is taken

Issues:

  • The actual behavior is different from the expected behavior.
  • The expressions/variables do not allow to select an answer in a desired language. Eg. if a subquestion number is SQ1 and there would be 2 languages, the above would not be an issue if the language could be selected by a parameter e.g. SQ[0] with 0 referring to the default language or 1 (SG[1]) referring to the first additional language etc. This is currently not possible.
Additional Information

Expected behavior: The 5 point choice array is filled up with the responses from the ranking in the same language as the survey is taken, in this case English (additional language)
Actual behavior: The 5 point choice array is filled up with the responses from the ranking but in the WRONG language, the subquestion texts from the default (Dutch) language are shown instead of the actual language in which the survey is taken

Issues:

  • The actual behavior is different from the expected behavior.
  • The expressions/variables do not allow to select an answer in a desired language. Eg. if a subquestion number is SQ1 and there would be 2 languages, the above would not be an issue if the language could be selected by a parameter e.g. SQ[0] with 0 referring to the default language or 1 (SG[1]) referring to the first additional language etc. This is currently not possible.
TagsNo tags attached.
Complete LimeSurvey version number (& build)Versie 4.3.5+200721
I will donate to the project if issue is resolvedNo
BrowserMicrosoft Edge Chromium, Google Chrome, Mozilla firefox
Database & DB-Versionno idea where to find this, it's a clean installation
Server OS (if known)hosted at one.com
Webserver software & version (if known)
PHP Version7

Activities

Xsaron

Xsaron

2020-07-28 00:27

reporter  

DenisChenu

DenisChenu

2020-07-28 08:36

developer   ~59114

Little sample lss file please.

Need only 2 questions

Issue History

Date Modified Username Field Change
2020-07-28 00:27 Xsaron New Issue
2020-07-28 00:27 Xsaron File Added: 2020-07-28 00_25_02-Digital transformation.png
2020-07-28 08:36 DenisChenu Note Added: 59114