View Issue Details
| ID | Project | Category | View Status | Date Submitted | Last Update |
|---|---|---|---|---|---|
| 20698 | Bug reports | Response browsing | public | 2026-09-17 19:58 | 2026-09-17 22:10 |
| Reporter | manfredtex | Assigned To | c_schmitz | ||
| Priority | none | Severity | minor | ||
| Status | closed | Resolution | no change required | ||
| Product Version | 7.0.x | ||||
| Summary | 20698: when I try to export responses I see expressions and not values | ||||
| Description | I have created a simple survey that calculates a grade based on responses given. here is the question code that works on the form, but when exporting to a response CSV I only see the formula and not the values: Grade: {if((if(is_empty(Good),0,5)+if(is_empty(Treat),0,5)+if(is_empty(Clean),0,5))==0,0,round(sum(Good.valueNAOK,Treat.valueNAOK,Clean.valueNAOK)/(if(is_empty(Good),0,5)+if(is_empty(Treat),0,5)+if(is_empty(Clean),0,5))*100))}% | ||||
| Steps To Reproduce | Steps to reproduce
Expected resultExpected response to have calculated values Actual resultonly see formula | ||||
| Tags | No tags attached. | ||||
| Attached Files | results-survey179947 (4).csv (1,385 bytes)
"Response ID","Date submitted","Last page","Start language","Seed","Date started","Date last action","IP address","Name","How good is the teacher ","Is the room clean","How did they treat the students ","Running Total: {sum(Good.valueNAOK, Treat.valueNAOK, Clean.valueNAOK)} Grade: {if((if(is_empty(Good),0,5)+if(is_empty(Treat),0,5)+if(is_empty(Clean),0,5))==0,0,round(sum(Good.valueNAOK,Treat.valueNAOK,Clean.valueNAOK)/(if(is_empty(Good),0,5)+if(is_empty(Treat),0,5)+if(is_empty(Clean),0,5))*100))}% ","","","Total time","Group time: My first question group","Question time: Name","Question time: Good","Question time: Clean","Question time: Treat","Question time: RunnintTotal","Question time: Grade","Question time: GradePCT"
"3","2026-09-17 17:46:14","1","en","1422111642","2026-09-17 17:45:58","2026-09-17 17:46:14","10.10.40.213","Roberta","2","4","4","sum(Good.valueNAOK, Treat.valueNAOK, Clean.valueNAOK)","if((if(is_empty(Good),0,5)+if(is_empty(Treat),0,5)+if(is_empty(Clean),0,5))==0,0,round(sum(Good.valueNAOK,Treat.valueNAOK,Clean.valueNAOK)/(if(is_empty(Good),0,5)+if(is_empty(Treat),0,5)+if(is_empty(Clean),0,5))*100))","if((if(is_empty(Good),0,5)+if(is_empty(Treat),0,5)+if(is_empty(Clean),0,5))==0,0,round(sum(Good.valueNAOK,Treat.valueNAOK,Clean.valueNAOK)/(if(is_empty(Good),0,5)+if(is_empty(Treat),0,5)+if(is_empty(Clean),0,5))*100))","16.79","16.79",,,,,,,
| ||||
| Bug heat | 4 | ||||
| Complete LimeSurvey version number (& build) | LimeSurvey Community Edition Version 7.1.0 | ||||
| I will donate to the project if issue is resolved | No | ||||
| Browser | chrome | ||||
| Database type & version | mariadb:10.11 | ||||
| Server OS (if known) | ubuntu | ||||
| Webserver software & version (if known) | |||||
| PHP Version | PHP 8.4 | ||||
| Git branch / Pull Request URL | |||||
|
I only see the formulas. The form is already really simple with just 3 basic questions. I need at least 3 to make sure the grade part works on the form, which it does, but it fails when viewing the responses or exporting the responses to an XLSX. I attached a response export from a new form entry. I also included a screenshot of the response screen. The use case for this is to create a form to evaluate student teachers in a classroom setting and the evaluator wants to calculate a grade based on responses entered and to exclude empty responses from the grading. results-survey179947 (6).csv (1,381 bytes)
"Response ID","Date submitted","Last page","Start language","Seed","Date started","Date last action","IP address","Name","How good is the teacher ","Is the room clean","How did they treat the students ","Running Total: {sum(Good.valueNAOK, Treat.valueNAOK, Clean.valueNAOK)} Grade: {if((if(is_empty(Good),0,5)+if(is_empty(Treat),0,5)+if(is_empty(Clean),0,5))==0,0,round(sum(Good.valueNAOK,Treat.valueNAOK,Clean.valueNAOK)/(if(is_empty(Good),0,5)+if(is_empty(Treat),0,5)+if(is_empty(Clean),0,5))*100))}% ","","","Total time","Group time: My first question group","Question time: Name","Question time: Good","Question time: Clean","Question time: Treat","Question time: RunnintTotal","Question time: Grade","Question time: GradePCT"
"4","2026-09-17 19:45:40","1","en","1816213058","2026-09-17 19:45:29","2026-09-17 19:45:40","10.10.40.213","Tim","2","4","4","sum(Good.valueNAOK, Treat.valueNAOK, Clean.valueNAOK)","if((if(is_empty(Good),0,5)+if(is_empty(Treat),0,5)+if(is_empty(Clean),0,5))==0,0,round(sum(Good.valueNAOK,Treat.valueNAOK,Clean.valueNAOK)/(if(is_empty(Good),0,5)+if(is_empty(Treat),0,5)+if(is_empty(Clean),0,5))*100))","if((if(is_empty(Good),0,5)+if(is_empty(Treat),0,5)+if(is_empty(Clean),0,5))==0,0,round(sum(Good.valueNAOK,Treat.valueNAOK,Clean.valueNAOK)/(if(is_empty(Good),0,5)+if(is_empty(Treat),0,5)+if(is_empty(Clean),0,5))*100))","10.53","10.53",,,,,,,
|
|
|
I looked into this using your exact formula, and the issue is in how the calculation is entered rather than a bug in the export. For an Equation question, the formula in the "Equation" setting (in the question's Logic settings) must be wrapped in curly braces { } to be recognized as a calculation. Without the braces, LimeSurvey treats it as plain text — which is why you're seeing the raw formula instead of a computed number in the export. So instead of: sum(Good.valueNAOK, Treat.valueNAOK, Clean.valueNAOK) {sum(Good.valueNAOK, Treat.valueNAOK, Clean.valueNAOK)} |
|
| Date Modified | Username | Field | Change |
|---|---|---|---|
| 2026-09-17 19:58 | manfredtex | New Issue | |
| 2026-09-17 19:58 | manfredtex | File Added: results-survey179947 (4).csv | |
| 2026-09-17 19:58 | manfredtex | File Added: surveys_archive (1).zip | |
| 2026-09-17 21:32 | c_schmitz | Bug heat | 0 => 2 |
| 2026-09-17 21:51 | manfredtex | Note Added: 85831 | |
| 2026-09-17 21:51 | manfredtex | File Added: results-survey179947 (6).csv | |
| 2026-09-17 21:51 | manfredtex | File Added: Screenshot 2026-09-17 154649.png | |
| 2026-09-17 21:51 | manfredtex | Bug heat | 2 => 4 |
| 2026-09-17 21:51 | c_schmitz | Bug heat | 4 => 2 |
| 2026-09-17 21:54 | c_schmitz | Assigned To | => c_schmitz |
| 2026-09-17 21:54 | c_schmitz | Status | new => closed |
| 2026-09-17 21:54 | c_schmitz | Resolution | open => no change required |
| 2026-09-17 21:54 | c_schmitz | Note Added: 85832 | |
| 2026-09-17 21:54 | c_schmitz | Bug heat | 2 => 4 |
| 2026-09-17 22:10 | c_schmitz | Note Edited: 85832 |