Welcome to the LimeSurvey Community Forum

Ask the community, share ideas, and connect with other LimeSurvey users!

data file should have all blank if question not shown

  • first
  • first's Avatar Topic Author
  • Offline
  • Elite Member
  • Elite Member
More
10 years 6 months ago #99751 by first
I have checked and found that if a multi question is not shown to respondent then we are getting all Zero for that question in SPSS data file.Ideally we should get all blanks in this case.Following are screen shots.

Survey Designer and Programmer
The topic has been locked.
  • first
  • first's Avatar Topic Author
  • Offline
  • Elite Member
  • Elite Member
More
10 years 6 months ago #99752 by first

Survey Designer and Programmer
The following user(s) said Thank You: utsi
The topic has been locked.
More
6 years 11 months ago #150757 by ddrmoscow
Just noticed the same behaviour with SPSS export for 2.06 and earlier (solved allready for 2.5+).
LOL , it appeared to be a very old headache for our researchers working with SPSS export files.

If topic is still relevant, here's the fast way to solve it for LS 2.06+ and earlier: modify 1 line in /application/helpers/export_helper.php row
from
Code:
} else
to
Code:
} elseif(isset($row[$fieldno]))

Regards
The topic has been locked.
More
6 years 11 months ago #150774 by ddrmoscow

ddrmoscow wrote: modify 1 line in /application/helpers/export_helper.php row
from

Code:
} else
to
Code:
} elseif(isset($row[$fieldno]))


row 187
The topic has been locked.
  • holch
  • holch's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
6 years 11 months ago #150971 by holch
mabye a bug report or even a pull request would be interesting.

I answer at the LimeSurvey forum in my spare time, I'm not a LimeSurvey GmbH employee.
No support via private message.

The topic has been locked.

Lime-years ahead

Online-surveys for every purse and purpose