- Posts: 212
- Thank you received: 38
Welcome to the LimeSurvey Community Forum
Ask the community, share ideas, and connect with other LimeSurvey users!
Show statistics to participant before they submit their answer
- ritapas
- Topic Author
- Offline
- Elite Member
Less
More
4 years 7 months ago - 4 years 7 months ago #187936
by ritapas
Show statistics to participant before they submit their answer was created by ritapas
Hello,
is there a clean way to show the survey statistics to participants before they submit their answers?
(Yes, I think this will bias their answers.)
The only way I've found is showing the "statistics_user/action/surveyid/XXXXX/language/YY" inside an iframe but this is clumsy and not nice to see.
Thank you for any suggestion.
Rita
is there a clean way to show the survey statistics to participants before they submit their answers?
(Yes, I think this will bias their answers.)
The only way I've found is showing the "statistics_user/action/surveyid/XXXXX/language/YY" inside an iframe but this is clumsy and not nice to see.
Thank you for any suggestion.
Rita
Last edit: 4 years 7 months ago by ritapas.
The topic has been locked.
- holch
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 11758
- Thank you received: 2753
4 years 7 months ago #187942
by holch
I answer at the LimeSurvey forum in my spare time, I'm not a LimeSurvey GmbH employee.
No support via private message.
Replied by holch on topic Show statistics to participant before they submit their answer
I don't think that there is any other way to show the public statistics page in another way than an iframe if it needs to be before they submit their answers.
You can format iframes quite nicely, depending on what you need. But of course, this always is a question of personal taste.
You might be able to create your own "statistics" in a text display question, by using one of Denis' plugin called "getStatInSurvey" ( gitlab.com/SondagesPro/ExportAndStats/getStatInSurvey ). Disclaimer: I haven't used it myself so far, but from what I understood that it does, it might help you here. You will have to try yourself.
nside an iframe but this is clumsy and not nice to see.
You can format iframes quite nicely, depending on what you need. But of course, this always is a question of personal taste.
You might be able to create your own "statistics" in a text display question, by using one of Denis' plugin called "getStatInSurvey" ( gitlab.com/SondagesPro/ExportAndStats/getStatInSurvey ). Disclaimer: I haven't used it myself so far, but from what I understood that it does, it might help you here. You will have to try yourself.
I answer at the LimeSurvey forum in my spare time, I'm not a LimeSurvey GmbH employee.
No support via private message.
The following user(s) said Thank You: ritapas
The topic has been locked.
- ritapas
- Topic Author
- Offline
- Elite Member
Less
More
- Posts: 212
- Thank you received: 38
4 years 7 months ago #187943
by ritapas
Replied by ritapas on topic Show statistics to participant before they submit their answer
Thank you, I'll check ASAP.
I'm not sure but it looks like the plugin can do stats only on the present participant's answer.
Our intent, on the other hand, is something like:
- "Be the first to answer YES"
- "More than 100 friends said NO to this".
I'm not sure but it looks like the plugin can do stats only on the present participant's answer.
Our intent, on the other hand, is something like:
- "Be the first to answer YES"
- "More than 100 friends said NO to this".
The topic has been locked.
- holch
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 11758
- Thank you received: 2753
4 years 7 months ago #187946
by holch
I answer at the LimeSurvey forum in my spare time, I'm not a LimeSurvey GmbH employee.
No support via private message.
Replied by holch on topic Show statistics to participant before they submit their answer
With Expression Manager you can only access the responses of the current respondent.
Denis' plugin is supposed to consults the database and give you information about the current results of a specific question. Otherwise the plugin would be unnecessary and creating mean values and % wouldn't make sense and calling it "statistics" either.
Denis' plugin is supposed to consults the database and give you information about the current results of a specific question. Otherwise the plugin would be unnecessary and creating mean values and % wouldn't make sense and calling it "statistics" either.
I agree that this might be a little bit misleading. But I guess with "previous answers" is mean the answers of previous respondents.Allow to show some statictics from previous answers in survey in question text, help and answers.
I answer at the LimeSurvey forum in my spare time, I'm not a LimeSurvey GmbH employee.
No support via private message.
The following user(s) said Thank You: ritapas
The topic has been locked.
- Joffm
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 12790
- Thank you received: 3940
4 years 7 months ago #187961
by Joffm
I can confirm that you may use the plugin to do this.
Joffm
Volunteers are not paid.
Not because they are worthless, but because they are priceless
Replied by Joffm on topic Show statistics to participant before they submit their answer
Our intent, on the other hand, is something like:
- "Be the first to answer YES"
- "More than 100 friends said NO to this".
I can confirm that you may use the plugin to do this.
Joffm
Volunteers are not paid.
Not because they are worthless, but because they are priceless
The following user(s) said Thank You: DenisChenu, ritapas
The topic has been locked.
- lfanfoni
- Offline
- Platinum Member
Less
More
- Posts: 904
- Thank you received: 213
4 years 7 months ago #187965
by lfanfoni
Se mi vuoi contattare, non mandare messaggi privati qui, bensì scrivi a lfanfoni at gmail.com
Per le livestream in italiano vai su: www.youtube.com/playlist?list=PLOSjjxAG9...SiiCsSz_JxIH7xJwLdPd
Le soluzioni LimeSurvey per l'Italia si trovano su: github.com/lfanfoni
Replied by lfanfoni on topic Show statistics to participant before they submit their answer
Some time ago I did a survey where it was necessary to customize the questionnaire based on aggregate calculations on the answers already present.
I used Quotas to trigger the condition on the aggregate data, and as an end action (reached limit), the autoload URL. This URL can be the same survey URL, parameterized so as to customize the questionnaire of the respondent that triggered the achievement of the quota.
If you place the request also in the Italian forum, I can try to give you some more suggestions
I used Quotas to trigger the condition on the aggregate data, and as an end action (reached limit), the autoload URL. This URL can be the same survey URL, parameterized so as to customize the questionnaire of the respondent that triggered the achievement of the quota.
If you place the request also in the Italian forum, I can try to give you some more suggestions
Se mi vuoi contattare, non mandare messaggi privati qui, bensì scrivi a lfanfoni at gmail.com
Per le livestream in italiano vai su: www.youtube.com/playlist?list=PLOSjjxAG9...SiiCsSz_JxIH7xJwLdPd
Le soluzioni LimeSurvey per l'Italia si trovano su: github.com/lfanfoni
The following user(s) said Thank You: ritapas
The topic has been locked.
- DenisChenu
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 13935
- Thank you received: 2551
4 years 7 months ago #187966
by DenisChenu
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.
Replied by DenisChenu on topic Show statistics to participant before they submit their answer
The plugin can show exactly the sentence you need.
For Answers part : since Expression manager already happen : you can show something like that:
More than [Q.nb.NON] friends said NO to this. but not do something like this :
{if('[Q.nb.NON]' == '0',"None said NO to this","More than [Q.nb.NON] friends said NO to this")}
For 4;0 : i surely do a new plugin for such system using a new EM function
github.com/LimeSurvey/LimeSurvey/commit/...e88774c37530b9415bcc
Something like {statCount("Q","NO")} then con use it anywhere more easily.
For Answers part : since Expression manager already happen : you can show something like that:
More than [Q.nb.NON] friends said NO to this. but not do something like this :
{if('[Q.nb.NON]' == '0',"None said NO to this","More than [Q.nb.NON] friends said NO to this")}
For 4;0 : i surely do a new plugin for such system using a new EM function
github.com/LimeSurvey/LimeSurvey/commit/...e88774c37530b9415bcc
Something like {statCount("Q","NO")} then con use it anywhere more easily.
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.
The following user(s) said Thank You: ritapas
The topic has been locked.
- Joffm
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 12790
- Thank you received: 3940
4 years 7 months ago #187969
by Joffm
If I have this in my question
{if('[Q1.nb.1]' > 5, "More than " + ('[Q1.nb.1]' - 1) + " answered A", "Less than 6 answered A")}
I get either
or
But it doesn't work in questions of type equation like
eqQ1: {floor('[Qu1.nb.1]' / Qu0_1 * 100)}
eqQ2: {floor('[Qu1.nb.2]' / Qu0_2 * 100)}
The value is displayed correctly, but not stored in the answer table.
And a following equation like
M1: {min(eqQ1,eqQ2)}
fails obviously.
So in my opinion you can use it to display something - even with "if" statements -, but not to do further calculations.
Joffm
Volunteers are not paid.
Not because they are worthless, but because they are priceless
Replied by Joffm on topic Show statistics to participant before they submit their answer
How to understand this?but not do something like this :
{if('[Q.nb.NON]' == '0',"None said NO to this","More than [Q.nb.NON] friends said NO to this")}
If I have this in my question
{if('[Q1.nb.1]' > 5, "More than " + ('[Q1.nb.1]' - 1) + " answered A", "Less than 6 answered A")}
I get either
or
But it doesn't work in questions of type equation like
eqQ1: {floor('[Qu1.nb.1]' / Qu0_1 * 100)}
eqQ2: {floor('[Qu1.nb.2]' / Qu0_2 * 100)}
The value is displayed correctly, but not stored in the answer table.
And a following equation like
M1: {min(eqQ1,eqQ2)}
fails obviously.
So in my opinion you can use it to display something - even with "if" statements -, but not to do further calculations.
Joffm
Volunteers are not paid.
Not because they are worthless, but because they are priceless
Attachments:
The topic has been locked.
- DenisChenu
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 13935
- Thank you received: 2551
4 years 7 months ago #187974
by DenisChenu
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.
Replied by DenisChenu on topic Show statistics to participant before they submit their answer
@ Joffm : yes, you can do it in question and help in 3.X
You can do it in answers or subquestion in 2.X
But you can't do it in answers or subquestion in 3.X
I put :
Thanks for correction.
You can use system like
in question and help
But not in answers or subquestions
You can do it in answers or subquestion in 2.X
But you can't do it in answers or subquestion in 3.X
I put :
For Answers part : since Expression Manager already happen : you can show something like that:
Thanks for correction.
You can use system like
Code:
{if('[Q1.nb.1]' > 5, "More than " + ('[Q1.nb.1]' - 1) + " answered A", "Less than 6 answered A")}
But not in answers or subquestions
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.
The following user(s) said Thank You: ritapas
The topic has been locked.
- ritapas
- Topic Author
- Offline
- Elite Member
Less
More
- Posts: 212
- Thank you received: 38
4 years 6 months ago #188306
by ritapas
Replied by ritapas on topic Show statistics to participant before they submit their answer
Denis' plugin does exactly what we needed and it works perfectly on our (rather old) LS 2.6.6-lts.
We hope to test soon on our LS3 environment.
Thank you all.
Rita
We hope to test soon on our LS3 environment.
Thank you all.
Rita
The following user(s) said Thank You: DenisChenu, lfanfoni, gabrieljenik
The topic has been locked.
- lfanfoni
- Offline
- Platinum Member
Less
More
- Posts: 904
- Thank you received: 213
4 years 6 months ago #188715
by lfanfoni
Se mi vuoi contattare, non mandare messaggi privati qui, bensì scrivi a lfanfoni at gmail.com
Per le livestream in italiano vai su: www.youtube.com/playlist?list=PLOSjjxAG9...SiiCsSz_JxIH7xJwLdPd
Le soluzioni LimeSurvey per l'Italia si trovano su: github.com/lfanfoni
Replied by lfanfoni on topic Show statistics to participant before they submit their answer
It works perfectly even with version 3. Great work !!!
Thank you
Thank you
Se mi vuoi contattare, non mandare messaggi privati qui, bensì scrivi a lfanfoni at gmail.com
Per le livestream in italiano vai su: www.youtube.com/playlist?list=PLOSjjxAG9...SiiCsSz_JxIH7xJwLdPd
Le soluzioni LimeSurvey per l'Italia si trovano su: github.com/lfanfoni
The following user(s) said Thank You: DenisChenu, ritapas
The topic has been locked.
- DenisChenu
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 13935
- Thank you received: 2551
4 years 6 months ago - 4 years 6 months ago #188798
by DenisChenu
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.
Replied by DenisChenu on topic Show statistics to participant before they submit their answer
For information : project in 4.0 , a core plugin to have statitics usage inside Expressin Manager directly
github.com/LimeSurvey/LimeSurvey/pull/13...52a79c514a726f65c89b
Then, for example :
See bugs.limesurvey.org/view.php?id=11589#c53523
For usage inside subquestion text AND subquestion relevance
2 functions :
statCount(Q01.sgqa) and statCount(Q01.sgqa,"A1")
github.com/LimeSurvey/LimeSurvey/pull/13...52a79c514a726f65c89b
Then, for example :
See bugs.limesurvey.org/view.php?id=11589#c53523
For usage inside subquestion text AND subquestion relevance
2 functions :
statCount(Q01.sgqa) and statCount(Q01.sgqa,"A1")
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 6 months ago by DenisChenu.
The topic has been locked.