Adding a special number to the response summary screen

More
4 months 3 weeks ago #164757 by drbray
drbray created the topic: Adding a special number to the response summary screen
I am trying to get the response summary screen to show "completes", which will count how many people answered the last question (which has the label "lastq").

I tried something that yielded this...


To get the above i edited the file...
limesurvey/application/views/admin/responses/browseindex_view.php

How can i reference the number of people who answered the last question (lastq) in that file?

Please Log in or Create an account to join the conversation.

More
4 months 3 weeks ago #164758 by Joffm
Joffm replied the topic: Adding a special number to the response summary screen
Hi,
which version of LS are you talking about?
The blue bar lets me think of something like 2.05, 2.06

In the versions 2.50+ you get this screen


Joffm


Volunteers are not paid.
Not because they are worthless, but because they are priceless
Attachments:

Please Log in or Create an account to join the conversation.

More
4 months 3 weeks ago #164762 by drbray
drbray replied the topic: Adding a special number to the response summary screen
I get the same screen...but i have edited the file that produces the screen to have an extra count for "Completes" which i am trying to define by those who answered the last question (lastq).

Please Log in or Create an account to join the conversation.

More
4 months 3 weeks ago #164768 by holch
holch replied the topic: Adding a special number to the response summary screen
So the difference of your "completes" to the "LS Completes" is that they have seen the last question? Because if they have answered the last question, they are registered as "completes" by LS anyway. So I don't really see why going through all of this hassle.

I'm not a LimeSurvey GmbH member. I answer at the LimeSurvey forum in my spare time. No support via private message.
Some helpful links: Manual (EN) | Question Types | Workarounds

Please Log in or Create an account to join the conversation.

More
4 months 3 weeks ago #164774 by jelo
jelo replied the topic: Adding a special number to the response summary screen

holch wrote: Because if they have answered the last question, they are registered as "completes" by LS anyway.

I don't think that is the case.
Answering the last question VS. submit survey is not the same. Think about the Endmessage.
You have quite often a completed survey (in terms of answered questions), but marked as incomplete by LimeSurvey. Many people are in such a hurry that they don't press submit at the end.

Please Log in or Create an account to join the conversation.

More
4 months 3 weeks ago #164777 by holch
holch replied the topic: Adding a special number to the response summary screen

Many people are in such a hurry that they don't press submit at the end.


But if they don't press submit, the last question does not get saved in the database either, correct? Because afaik the end message only shows up once you hit submit. So if you reach the end message, you are a "complete". If you don't hit submit, the last question will not be saved in the data base. This leads me to the conclusion that everyone who has answered the last question is the same as everyone that is complete. But I might be wrong.

I'm not a LimeSurvey GmbH member. I answer at the LimeSurvey forum in my spare time. No support via private message.
Some helpful links: Manual (EN) | Question Types | Workarounds

Please Log in or Create an account to join the conversation.

More
4 months 3 weeks ago #164786 by jelo
jelo replied the topic: Adding a special number to the response summary screen

holch wrote: Because afaik the end message only shows up once you hit submit. So if you reach the end message, you are a "complete".

You're right. I got it a bit wrong with the submit button.

If you have a optional question at the end (e.g. emailadress for more infos, prizes etc.), people often just close the survey instead of move forward without entering anything. That way they don't reach the submit button and the completed flag is not set.

Please Log in or Create an account to join the conversation.

More
4 months 2 weeks ago #164835 by drbray
drbray replied the topic: Adding a special number to the response summary screen
Those who answer the last question (lastq) are different from what limesurvey already reports because of screener questions. If they answered the last screener question and are screened out of the rest of the survey they are still considered 'complete' by limesurvey. That's why i want the # of people answering the last question to be reported.

In the file...
limesurvey/application/views/admin/responses/browseindex_view.php
...i added a line...
<tr><th><?php eT("Completes"); ?></th><td><?php echo "{lastq.shown}"; ?></td></tr>
...which is not correct. I need to know how how to pull in how many answered the last question (lastq) where i have {lastq.shown}

Please Log in or Create an account to join the conversation.

More
4 months 2 weeks ago #164842 by holch
holch replied the topic: Adding a special number to the response summary screen

If they answered the last screener question and are screened out of the rest of the survey they are still considered 'complete' by limesurvey.


Good point! Didn't think of that.

I'm not a LimeSurvey GmbH member. I answer at the LimeSurvey forum in my spare time. No support via private message.
Some helpful links: Manual (EN) | Question Types | Workarounds

Please Log in or Create an account to join the conversation.

More
4 months 2 weeks ago #164843 by holch
holch replied the topic: Adding a special number to the response summary screen
I am not sure if there is a solution for this. But I think we really need to discuss the concept of "Screening" for Limesurvey. Just using zero quotas does the trick, but only half of it, as we can see in this case.

I think this should be a feature request!

I'm not a LimeSurvey GmbH member. I answer at the LimeSurvey forum in my spare time. No support via private message.
Some helpful links: Manual (EN) | Question Types | Workarounds

Please Log in or Create an account to join the conversation.

More
4 months 2 weeks ago - 4 months 2 weeks ago #164848 by Joffm
Joffm replied the topic: Adding a special number to the response summary screen
Hi,
in a small running survey I see the following


Total responses: 12 (everybody who started the survey)
Total surveys completed: 11 (so 1 respondent just closed the browser)
Full responses: 9 (real completes)
Incomplete responses: 3 (screenout or closed the browser)

So I can calculate that there are (11-9) screenouts

And here I see that a screenout is not counted as complete (page 3 is the screenout question):


But in the participants list it is counted as completed (a screened out respondent cannot participate again)
So you could insert into that file "limesurvey/application/views/admin/responses/browseindex_view.php" something like:
<tr><th><?php eT("Real screenouts"); ?></th><td><?php echo ($tokeninfo['completed'] - $num_completed_answers); ?></td></tr>

Translation needed, but:


Joffm

But of course I fully support the wish for a better screenout management.


Volunteers are not paid.
Not because they are worthless, but because they are priceless
Attachments:
Last Edit: 4 months 2 weeks ago by Joffm.

Please Log in or Create an account to join the conversation.

More
4 months 2 weeks ago #164859 by drbray
drbray replied the topic: Adding a special number to the response summary screen
Not quite what i need.
You were able to pull a variable fromt he tokens. Is there a way of pulling a variable from the survey? Because what i need is to pull in "lastq" from the survey...but i need the number of people answering it. Maybe something like...
$surveyinfo

Also, are there any variables similary to "$num_completed_answers" that could help with this?

Please Log in or Create an account to join the conversation.

More
4 months 2 weeks ago #164861 by jelo
jelo replied the topic: Adding a special number to the response summary screen

drbray wrote: . If they answered the last screener question and are screened out of the rest of the survey they are still considered 'complete' by limesurvey.

Your screener question is implemented via quota?


There are enough feature requests. The developers are still not connected to the world of quota. Or the userbase they have in mind don't need anything than the current quota system.

bugs.limesurvey.org/view.php?id=9345
bugs.limesurvey.org/view.php?id=11589

Please Log in or Create an account to join the conversation.

More
4 months 2 weeks ago #164862 by drbray
drbray replied the topic: Adding a special number to the response summary screen
"Your screener question is implemented via quota?"

No...is that my problem? I've never actually used 'quotas' because we don't have a set number of completes that we turn off interviewing at.

Please Log in or Create an account to join the conversation.

More
4 months 2 weeks ago #164864 by Joffm
Joffm replied the topic: Adding a special number to the response summary screen
Oh, then we talked about different things.

You do it like this?
If Q1==2 then all following questions are not shown by relevance. Of course this is a complete interview.

Unless Jelo asked we all thought about the "quota=0" workaround to screen people out. And in this case you don't get a "complete" in the answer table, but in the participants table.

IMO $num_completed_answers is the result of a SQL query somewhere else in the code. But I didn't find it yet.

Joffm


Volunteers are not paid.
Not because they are worthless, but because they are priceless

Please Log in or Create an account to join the conversation.

Start now!

Just create your account and start using Limesurvey today.

Register now
Join our Newsletter!