View Issue Details

This bug affects 1 person(s).
 4
IDProjectCategoryView StatusLast Update
17072Bug reportsSurvey takingpublic2021-02-11 08:23
Reporteradamzammit Assigned To 
PrioritynoneSeverityminor 
Status newResolutionopen 
Product Version3.25.12 
Summary17072: Questions dependent on equation style question for relevance have missing data where equation is set in question text
Description

Create a regular question (1)
Create an "equation" style question that does a calculation based on the regular question (1) and set the equation in the "Question text" NOT in the "Equation" section under "Logic"
Create another regular question that has relevance based on the equation style question

Bug:

  • Survey will appear to work as expected for the participant (the regular questions will appear/disappear based on the relevance equation)
  • Data entered in the question will not appear in the database (lost)

Alternative that works:

Create a regular question (1)
Create an "equation" style question that does a calculation based on the regular question (1) and set the equation in the "Question text" AND in the "Equation" section under "Logic"
Create another regular question that has relevance based on the equation style question

I have attached 2 LSS Files of the same questionnaire with the difference included to show the bug.

Please note - fill in the questionnaire, choose "Fundamentals of multiple regression" as your "Course", then choose "Good" or "Very Good" for in the rating array question, a question called "GOODWHY" should appear - enter some text in here. In the "FAILED_DATA_ENTRY" survey, the entered text will not appear in the results.

Steps To Reproduce

As above

TagsNo tags attached.
Attached Files
WORKING_GOODWHY.lss (27,824 bytes)
Bug heat4
Complete LimeSurvey version number (& build)3.25.12
I will donate to the project if issue is resolvedNo
Browser
Database type & versionMysql
Server OS (if known)
Webserver software & version (if known)
PHP Version7.4

Users monitoring this issue

There are no users monitoring this issue.

Activities

DenisChenu

DenisChenu

2021-02-10 09:25

developer   ~62098

Data entered in the question will not appear in the database (lost)

I can't reproduce this part in 3.25.11
(survey submitted)

DenisChenu

DenisChenu

2021-02-10 09:25

developer   ~62099

DenisChenu

DenisChenu

2021-02-10 09:30

developer   ~62100

Oh no :)

Got it … i think it's already repported somewhere … it's about HTML issue

Then {SCORE > 3} mean {'

5

' > 3}

Did you try with number forced ?

adamzammit

adamzammit

2021-02-10 22:42

developer   ~62138

Ah yes - that is probably true.

BUT - the expression manager code works on that same page - eg the "GOODWHY" question appears and disappears based on the relevence code. Then the problem is what is unexpected - that the respondent can enter in some text/data and it is lost as in the backend LimeSurvey doesn't save it. There should at least be consistency (i.e. the frontend should fail as well, or they should both succeed)

DenisChenu

DenisChenu

2021-02-11 08:23

developer   ~62142

yes , sure …

There are an issue in javascript (not in PHP)
Why tag is stripped ?

Issue History

Date Modified Username Field Change
2021-02-10 03:40 adamzammit New Issue
2021-02-10 03:40 adamzammit File Added: FAILED_DATA_ENTRY_GOODWHY.lss
2021-02-10 03:40 adamzammit File Added: WORKING_GOODWHY.lss
2021-02-10 09:25 DenisChenu Note Added: 62098
2021-02-10 09:25 DenisChenu Note Added: 62099
2021-02-10 09:25 DenisChenu File Added: Capture d’écran du 2021-02-10 09-25-24.png
2021-02-10 09:30 DenisChenu Note Added: 62100
2021-02-10 09:30 DenisChenu File Added: Capture d’écran du 2021-02-10 09-27-29.png
2021-02-10 22:42 adamzammit Note Added: 62138
2021-02-11 08:23 DenisChenu Note Added: 62142