Check out the LimeSurvey source code on GitHub!

How Can I Recalculate Equasions After Runtime?

More
2 years 7 months ago #109136 by vector01
Hi Everyone,
When someone takes a survey, I've created a few hidden questions with equations that calculate a score based on those answers. Problem is, those results are only stored after the survey is complete. Sometimes though, I'd like to be able to change some of their answers, which would obviously change the score. How can I get limesurvey to recalculate the results after the survey has completed? Hopefully that makes sense.

Thanks!

Please Log in to join the conversation.

More
2 years 7 months ago #109139 by vector01
So actually I half-way figured this out.

• Go to survey participants page, find the participant in question and click edit.
• Change "completed" filed to "n"
• Change "uses left" to 1
• Save
• Go to "data view control" page
• Find record, then click on the gear icon, then re-complete the survey with the new values.

There will be two survey's now in your data-vew page. Just delete the first one. It's an imperfect process but that should be okay anyway.

Please Log in to join the conversation.

More
1 year 8 months ago #119862 by ordogz
Hi !

Please could you provide some help in doing these steps (what you already did) : " I've created a few hidden questions with equations that calculate a score based on those answers. " .

My situation is :

I created a Competency assessment survey in limesurvey.The question is, that it's possible to generate statistics and charts based on Limesurvey collected data in such way that the results page should show for the user(or to send it automatically by email) an overall result for each of the question groups chart separately for each group, and below this a chart with the question groups together. In this way the user will know in which competency area is stronger and in which not. The questions are grouped in subquestions with 5 answers(ex: "Not applicable to me", "Rarely", "Usual", "Always"...), the question type used is simple Array type . I set up the answers with assessment values from 1 to 5.

Please help me take the right direction in solving this problem. Thank You !

Please Log in to join the conversation.

More
1 year 8 months ago #119870 by bdg
Do you want to show a seperate report for each strata? And a combined report? You might have to do some custom php coding for that, and send someone to your own report page when they finish the survey, and pass their token as a parameter. Something like http://..../report.php?token=uicd89d76f. Then your report page reads the LimeSurvey token table to see which group to stratify the user by and summarises the data for that strata, plus all groups.

If you only wanted to report by a single group I would say copy the survey and run one version for each group, but then you can't report all groups combined.

Please Log in to join the conversation.

Imprint                   Privacy policy         General Terms & Conditions         Revocation information and revocation form