View Issue Details

This issue affects 1 person(s).
 4
IDProjectCategoryView StatusLast Update
20698Bug reportsResponse browsingpublic2026-09-17 22:10
Reportermanfredtex Assigned Toc_schmitz  
PrioritynoneSeverityminor 
Status closedResolutionno change required 
Product Version7.0.x 
Summary20698: 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

  1. create a new form
  2. Add 3 questions with radio buttons 1-5
  3. create an equation with code above
  4. submit some surveys
  5. export responses to CSV

Expected result

Expected response to have calculated values

Actual result

only see formula

TagsNo 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",,,,,,,
results-survey179947 (4).csv (1,385 bytes)   
Bug heat4
Complete LimeSurvey version number (& build)LimeSurvey Community Edition Version 7.1.0
I will donate to the project if issue is resolvedNo
Browserchrome
Database type & versionmariadb:10.11
Server OS (if known)ubuntu
Webserver software & version (if known)
PHP VersionPHP 8.4
Git branch / Pull Request URL

Users monitoring this issue

There are no users monitoring this issue.

Activities

manfredtex

manfredtex

2026-09-17 21:51

reporter   ~85831

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",,,,,,,
results-survey179947 (6).csv (1,381 bytes)   
c_schmitz

c_schmitz

2026-09-17 21:54

administrator   ~85832

Last edited: 2026-09-17 22:10

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)
it needs to be:

{sum(Good.valueNAOK, Treat.valueNAOK, Clean.valueNAOK)}
Please update all three of your equation formulas (the running total, the grade, and the grade percentage) to wrap them in { }, then re-test. That will make them evaluate correctly and save in the response data.

Issue History

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