Welcome to the LimeSurvey Community Forum

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

Implementing quality checks

  • nadica123
  • nadica123's Avatar Topic Author
  • Away
  • Junior Member
  • Junior Member
More
1 day 4 hours ago #269047 by nadica123
Implementing quality checks was created by nadica123
Please help us help you and fill where relevant:
LimeSurvey version: 6.3.4
Own server or LimeSurvey Cloud: own
Survey theme/template: fruity
==================
(Write here your question/remark)

Hello,

I wanted to know if there is some way I can implement two things in my surveys:
  • Tracking the count of DKs - for example if out of 10 question 5 or more are answered with DK, the respondent will be shown some warning message
  • Tracking the answering time of each question or question group and if the average time is under let's say 5 secs the respondent gets shown some warning message
I'm guessing there will need to be some hidden questions involved, as for the message I was wondering if it could be shown as a pop up message or it will have to be a regular text type question.

I would appreciate any guidance on this,

Thanks in advance,

Kind regards,

Please Log in to join the conversation.

  • Joffm
  • Joffm's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
1 day 2 hours ago #269054 by Joffm
Replied by Joffm on topic Implementing quality checks
1. Yes, count the DK.
If all DK have the same code, (99),
{countif(99,Q1,Q2,Q3,.)}
2. Equation to store the time at the start of each group.
Always calculate the differences to know the ised time of the previous group.

But everything depends on the structure of your survey.

Nest you show a realistic example (lss export)

Joffm 
 

Volunteers are not paid.
Not because they are worthless, but because they are priceless
The following user(s) said Thank You: DenisChenu

Please Log in to join the conversation.

  • nadica123
  • nadica123's Avatar Topic Author
  • Away
  • Junior Member
  • Junior Member
More
5 hours 1 minute ago #269086 by nadica123
Replied by nadica123 on topic Implementing quality checks
Thank you for your quick reply!

I'm attaching a dummy survey in which I added question types I use most often.

Would like to see how the counting DKs hidden question would get implemented to trigger a pop up notification?

Thank you for the help, 

File Attachment:

File Name: limesurvey...5431.lss
File Size:105 KB


Kind regards,

Nadica.

Please Log in to join the conversation.

  • holch
  • holch's Avatar
  • Away
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
3 hours 55 minutes ago #269099 by holch
Replied by holch on topic Implementing quality checks
From a respondent point of view:

These "quality checks" can be annoying, when the quality checks for the survey itself haven't been done.

What I often see are surveys that are not very well made, that "force" respondents basically to answer "DK", because the survey designer did not take into account all profiles out there.

Happens to me quite a lot, where for certain questions you basically need to answer DK, because otherwise you would basically give a false answer. The answer option you need might not be there, or the question has been asked wrong, etc.

So before implementing these quality checks, make sure to look at your survey from all sides, so you don't "penalize" honest respondents, because of flaws in the survey. Not saying that this is your case, I am just saying that a lately see a lot of surveys that are not very well made.

Years ago it was quite common to do pre-tests with real respondents before sending surveys out, just to check if the survey makes sense, if it covers all scenarios, etc. You hardly see this anymore and it shows.

Help us to help you!
  • Provide your LS version and where it is installed (own server, uni/employer, SaaS hosting, etc.).
  • Always provide a LSS file (not LSQ or LSG).
Note: I answer at this forum in my spare time, I'm not a LimeSurvey GmbH employee.

Please Log in to join the conversation.

  • Joffm
  • Joffm's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
3 hours 31 minutes ago #269102 by Joffm
Replied by Joffm on topic Implementing quality checks
Hi,

I fully agree with @holch, but if you want to do this, here an option.
To count the DKs  (BTW I renamed these long QuestionCodes and set all DKs to '99')
{sum(countif('99',that.Q2a.NAOK,that.Q2c.NAOK),intval(Q2b_99.NAOK=="Y"))}

To show this with something like a popup you may use a bootstrap alert.
[url] getbootstrap.com/docs/5.3/components/alerts/ [/url]



But this is up to you.
Mabe something like this
Code:
<div class="alert alert-warning" role="alert"><strong>Achtung! </strong>Sie haben {QRes} Mal mit "Don't know" geantwortet.</div>
 
<div class="alert alert-success" role="alert"><strong>Sehr gut! </strong>Sie haben nur {QRes} Mal mit "Don't know" geantwortet.</div>
<script type="text/javascript" charset="utf-8">
 
$(document).on('ready pjax:scriptcomplete',function(){
 
    var thisQuestion = $('#question{QID}');
    $('.question-text .alert-success', thisQuestion).hide();
    $('.question-text .alert-warning', thisQuestion).hide();
 
    var wert='{QRes}';
    if (wert>2) {
        $('.question-text .alert-warning', thisQuestion).show();
    } else {
        $('.question-text .alert-success', thisQuestion).show();
    }
    setTimeout(function () {
        $('.question-text .alert-success', thisQuestion).fadeOut(500);
        $('.question-text .alert-warning', thisQuestion).fadeOut(500);
    }, 5000);
});
 
</script>

And I won't discuss this further in English.

Joffm

BTW:
Can't you revise your conditions?
With numerical codes instead of text it is much shorter:
Qinviteincentive: Qinvitation.NAOK != 'Y
Qage: Qinvitation.NAOK != 'N'  or Qinviteincentive.NAOK != 'N'
Demographics: Qage.NAOK >1

 

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

Please Log in to join the conversation.

Moderators: tpartnerholch

Lime-years ahead

Online-surveys for every purse and purpose