Welcome to the LimeSurvey Community Forum

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

Avoid saving answers to specific questions in the results

  • Topappel
  • Topappel's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
4 years 9 months ago - 4 years 9 months ago #185876 by Topappel
Hello,

for my survey I need to use the geographical data of the respondents' work and home locations to calculate the distance between these points. I use the short text map question type to inquire the coordinates of these locations. This also means that the coordinates will be saved in the results. However, I want to be able to guarantee that the survey does not save sensitive information, so that the respondent remains anonymous. Is there a way to save the coordinates for the duration of the survey and discard them once the survey is completed?

Thanks for your help :)
Last edit: 4 years 9 months ago by Topappel.
The topic has been locked.
  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
4 years 9 months ago - 4 years 9 months ago #185879 by DenisChenu
You can create a plugin to delete some values when survey is submitted
manual.limesurvey.org/AfterSurveyComplete is the event to use


@Joffm solution is better :)

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand , plugin development .
I don't answer to private message.
Last edit: 4 years 9 months ago by DenisChenu. Reason: @Joffm solution is better :)
The following user(s) said Thank You: Topappel
The topic has been locked.
  • Joffm
  • Joffm's Avatar
  • Away
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
4 years 9 months ago - 4 years 9 months ago #185882 by Joffm
Hi,
try to create a question of type equation at the end of the survey which sets these fields to "" (blank).
I assume your geo question is a question of type "short text". Let's have it the code "geo1".

So your equation wold be {geo1=""}




But the answer table has no data.


Joffm

Volunteers are not paid.
Not because they are worthless, but because they are priceless
Last edit: 4 years 9 months ago by Joffm.
The following user(s) said Thank You: DenisChenu, Topappel
The topic has been locked.
  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
4 years 9 months ago #185884 by tpartner
Joffm's approach is an elegant solution but I think another concern will be convincing respondents that you only want to "temporarily" use the location data.

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The topic has been locked.
  • Topappel
  • Topappel's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
4 years 9 months ago #185957 by Topappel
Thank you so much, Joffm! This is exactly what I needed.

@tpartner I agree. Convincing the respondents that I only use the data within the survey is tricky. However, I do not save the locational data in the results, so I can claim with good conscience that their answers will be anonymous. Whether the respondent chooses to believe my claim is ultimately up to them.
The topic has been locked.

Lime-years ahead

Online-surveys for every purse and purpose