Dependency Graph View Issue Relation Graph Vertical
related to child of duplicate of

View Issue Details

IDProjectCategoryView StatusLast Update
14776Bug reports[All Projects] _ Unknownpublic2019-05-29 16:39
ReporterBBCMResearchAssigned Todominikvitt 
PrioritynoneSeveritymajor 
Status closedResolutionfixed 
Product Version3.17.x 
Target VersionFixed in Version3.17.x 
Summary14776: Hidden Questions Not Being Asked
Description

After installing the latest comfort update to Version 3.17.2+190408, my survey's hidden questions used for quotas are no longer being asked, resulting in untracked quotas. Quotas are token based, but token-based visible questions and groups continue to function properly. Question-based quotas continue to function properly

Steps To Reproduce

Set hidden question based on user tokens with default answer = 1, so that each question is only asked of users with specific attributes, and 1 indicates that specific combination of attributes is in place for a given respondent. Example: ((TOKEN:ATTRIBUTE_7 == "2") AND (TOKEN:ATTRIBUTE_3 == "2")) for 1 question and ((TOKEN:ATTRIBUTE_7 == "2") AND (TOKEN:ATTRIBUTE_3 == "1")) for another question, each indicating different categories of respondents to be tracked in quotas

Additional Information

Database & DB version may not be accurate - if it looks incorrect, let me know and I'll hunt down my unresponsive IT guy

TagsNo tags attached.
Complete LimeSurvey version number (& build)3.17.2+190408
I will donate to the project if issue is resolvedNo
BrowserChrome
Database & DB-VersionMySQL: Percona-Server-client-56.x86_64 5.6.39
Server OS (if known)Linux
Webserver software & version (if known)Apache
PHP Version7.0.33

Activities

DenisChenu

DenisChenu

2019-04-16 09:47

developer   ~51476

Last edited: 2019-04-16 09:47

View 2 revisions

Can you send a sample LSS file ?
One without token system (quota with default value)
One with token system (a survey archive possibiliy)

Do you know when it work : the version before the 3.17 ?

BBCMResearch

BBCMResearch

2019-04-16 14:56

reporter   ~51479

Hi Denis, I'll get a sample file to you later today, it will take me a little bit to strip PII from the sample participant data. This is a CATI survey, and the workaround I have is to unhide the questions and force my callers to manually ensure the default answer is selected.

When I tested this out this morning, I got an error that "1" is not a valid default value for the question, even though there's only 1 answer option and the value is set to "1". So I assume the problem lies there.

I've never had this problem before, and I've kept up with the comfort updates, so I assumed that it was working with a recent build of 3.17, and I know it worked prior to that.

BBCMResearch

BBCMResearch

2019-04-16 15:38

reporter   ~51480

Denis, Sample LSS File is here, along with a sample participants list, and a list of tokens to test out. I've included these because of the number of attributes associated with participants in this survey



HiddenQDefaultADemo.lss (105,123 bytes)
Test Tokens.xlsx (9,203 bytes)
Sample Participants List.csv (602,704 bytes)
DenisChenu

DenisChenu

2019-04-16 15:53

developer   ~51481

I ask for a simple survey : 2 groups … maximum … 3/4 questions …

DenisChenu

DenisChenu

2019-04-16 16:10

developer   ~51482

This survey is too complex to be tested … please :

  1. Tell us when it work
  2. Give us a more simple survey (with quota set to 0 or 1 or 2)
DenisChenu

DenisChenu

2019-04-16 16:15

developer   ~51483

But more : with included survey set IVREnglishCheck to 2 : quota is OK : out after the Hidden_Quota_Questions …

BBCMResearch

BBCMResearch

2019-04-16 17:23

reporter   ~51484

Apologies, I didn't know how much I could remove from the original without interfering with the bug. Revised sample survey is attached. Quotas for hidden questions DO NOT work, quota for a visible question does



Sample Participants List 2.csv (204 bytes)
HiddenQDefaultADemo2.lss (42,923 bytes)
DenisChenu

DenisChenu

2019-04-16 17:43

developer   ~51485

IVREnglishCheck is an hidden question, but it work.

Remind Quota only for Completed Survey, not quota out for any other reason.

BBCMResearch

BBCMResearch

2019-04-16 17:55

reporter   ~51486

That's weird. I run that exact file with those exact participants on LS Version 3.17.2+190408 and all I get is the Completed Survey Quota. The Tier2English & Tier2Spanish quotas aren't registering any response.

BBCMResearch

BBCMResearch

2019-04-16 18:09

reporter   ~51487

The visible quota for Completed Surveys was added several iterations ago because sometimes the CATI callers would close the survey without clicking the final 'submit' button. This ensures that we properly track all the completed surveys and it makes it easier to tally the sum total of completes

DenisChenu

DenisChenu

2019-04-16 18:27

developer   ~51488

Last edited: 2019-04-16 18:28

View 2 revisions

Checked Tier2English set to 1 for max quota : OK
See QINTRO
but not Agency Satisfaction

Maybe : disable Ajax mode to be sure (i always disable ajax mode)

BBCMResearch

BBCMResearch

2019-04-16 18:35

reporter   ~51489

Denis, are you looking at the v2 sample I uploaded? All the Agency Satisfaction and IVR language should be gone - just 2 hidden quotas and a couple of questions plus QINTRO & the Survey Complete Question.

How would I disable Ajax mode? It's not something I'm familiar with

DenisChenu

DenisChenu

2019-04-16 18:36

developer   ~51490

No the V1



BBCMResearch

BBCMResearch

2019-04-16 18:42

reporter   ~51492

... The demo that I sent runs on the default Bootwatch theme, and the main survey runs on a customized extension that just adds a customer's logo. Ajax is enabled on the main survey, but disabled in the demo, and I still can't get the hidden quotas to function properly

DenisChenu

DenisChenu

2019-04-17 16:25

developer   ~51500

Since in can't confirm the issue because i can't reproduce …

c_schmitz

c_schmitz

2019-04-18 13:43

administrator   ~51515

@BBCMResearch, can you try creating a copy of your survey and see if it works there?
Also, try to switch to a factory theme and see if that changes anything.

BBCMResearch

BBCMResearch

2019-04-18 14:36

reporter   ~51519

@c_schmitz, that's what I did when Denis asked the first time. I made a copy, then I made second, simplified copy, and it uses the factory bootswatch theme. It's still only collecting quotas from the unhidden, non-default answer question, not from the hidden question with a default answer. If I un-hide the questions that have a default answer, and then test the survey, I get the attached error message. So I'm now assuming the problem isn't with the quotas, but rather with default answers



Default Value Error.JPG (55,140 bytes)
Default Value Error.JPG (55,140 bytes)
c_schmitz

c_schmitz

2019-04-18 14:45

administrator   ~51521

So, what if you fix the default value?

BBCMResearch

BBCMResearch

2019-04-18 14:58

reporter   ~51523

"1" is the only value and answer choice for the question, it shouldn't be reading as invalid. If it's the only option and I need it to be set to automatic for the quota to work as a hidden question, I'm not really sure what I can do

DenisChenu

DenisChenu

2019-04-18 15:38

developer   ~51524

I check a lot this lss because i think it can be related to Default value checking, but can‘t reproduce on my way …
Can you validate again the default value ( mean : open default value , save)

BBCMResearch

BBCMResearch

2019-04-18 15:42

reporter   ~51525

@Denis - I tried that before I reported the bug, and have tried several times since - double checking the question answers and clicking on "Edit default answer values". Do you think it would matter if I changed the text of the answer to match the code? So change from value='1' label='Yes' to value='1' label='1' ?

c_schmitz

c_schmitz

2019-04-18 15:44

administrator   ~51526

No, it would not

DenisChenu

DenisChenu

2019-04-18 15:58

developer   ~51527

Can you just create a survey with only this question with this same default value and check what happen ?

BBCMResearch

BBCMResearch

2019-04-18 16:26

reporter  

HiddenQ_DefaultA_3.lss (19,870 bytes)
BBCMResearch

BBCMResearch

2019-04-18 16:26

reporter   ~51528

Ok, created a brand new survey with only one hidden question with one default answer, and one visible question with no default answer. Set quotas to both. Again, the visible one is captured, the hidden one is not. No token values or other questions or skip logic required.

DenisChenu

DenisChenu

2019-04-18 17:08

developer   ~51529

Last edited: 2019-04-18 17:08

View 2 revisions

Got it … fixed in https://github.com/LimeSurvey/LimeSurvey/commit/7eaaba33141f48a604b12657b62bc5b333370e1d
But not in current release
@c_schmitz : a new release ?

c_schmitz

c_schmitz

2019-04-18 17:09

administrator   ~51530

Yes, after the Easter holidays.

BBCMResearch

BBCMResearch

2019-04-18 17:15

reporter   ~51531

Thanks guys!

DenisChenu

DenisChenu

2019-05-08 12:27

developer   ~51826

https://github.com/LimeSurvey/LimeSurvey/commit/7eaaba33141f48a604b12657b62bc5b333370e1d

c_schmitz

c_schmitz

2019-05-29 16:39

administrator   ~52241

Version 3.17.4+190529 released

Issue History

Date Modified Username Field Change
2019-04-15 22:12 BBCMResearch New Issue
2019-04-16 09:47 DenisChenu Note Added: 51476
2019-04-16 09:47 DenisChenu Note Edited: 51476 View Revisions
2019-04-16 14:56 BBCMResearch Note Added: 51479
2019-04-16 15:38 BBCMResearch File Added: HiddenQDefaultADemo.lss
2019-04-16 15:38 BBCMResearch File Added: Test Tokens.xlsx
2019-04-16 15:38 BBCMResearch File Added: Sample Participants List.csv
2019-04-16 15:38 BBCMResearch Note Added: 51480
2019-04-16 15:53 DenisChenu Note Added: 51481
2019-04-16 16:10 DenisChenu Note Added: 51482
2019-04-16 16:15 DenisChenu Note Added: 51483
2019-04-16 16:15 DenisChenu Assigned To => DenisChenu
2019-04-16 16:15 DenisChenu Status new => feedback
2019-04-16 17:23 BBCMResearch File Added: Sample Participants List 2.csv
2019-04-16 17:23 BBCMResearch File Added: HiddenQDefaultADemo2.lss
2019-04-16 17:23 BBCMResearch Note Added: 51484
2019-04-16 17:23 BBCMResearch Status feedback => assigned
2019-04-16 17:43 DenisChenu Note Added: 51485
2019-04-16 17:55 BBCMResearch Note Added: 51486
2019-04-16 18:09 BBCMResearch Note Added: 51487
2019-04-16 18:27 DenisChenu Note Added: 51488
2019-04-16 18:28 DenisChenu Note Edited: 51488 View Revisions
2019-04-16 18:35 BBCMResearch Note Added: 51489
2019-04-16 18:36 DenisChenu File Added: Capture d’écran du 2019-04-16 18-36-18.png
2019-04-16 18:36 DenisChenu Note Added: 51490
2019-04-16 18:42 BBCMResearch Note Added: 51492
2019-04-17 16:25 DenisChenu Assigned To DenisChenu =>
2019-04-17 16:25 DenisChenu Status assigned => new
2019-04-17 16:25 DenisChenu Note Added: 51500
2019-04-18 13:43 c_schmitz Note Added: 51515
2019-04-18 13:43 c_schmitz Assigned To => c_schmitz
2019-04-18 13:43 c_schmitz Status new => feedback
2019-04-18 14:36 BBCMResearch File Added: Default Value Error.JPG
2019-04-18 14:36 BBCMResearch Note Added: 51519
2019-04-18 14:36 BBCMResearch Status feedback => assigned
2019-04-18 14:45 c_schmitz Note Added: 51521
2019-04-18 14:45 c_schmitz Status assigned => feedback
2019-04-18 14:58 BBCMResearch Note Added: 51523
2019-04-18 14:58 BBCMResearch Status feedback => assigned
2019-04-18 15:38 DenisChenu Note Added: 51524
2019-04-18 15:42 BBCMResearch Note Added: 51525
2019-04-18 15:44 c_schmitz Note Added: 51526
2019-04-18 15:58 DenisChenu Note Added: 51527
2019-04-18 16:26 BBCMResearch File Added: HiddenQ_DefaultA_3.lss
2019-04-18 16:26 BBCMResearch Note Added: 51528
2019-04-18 17:08 DenisChenu Note Added: 51529
2019-04-18 17:08 DenisChenu Note Edited: 51529 View Revisions
2019-04-18 17:09 c_schmitz Note Added: 51530
2019-04-18 17:15 BBCMResearch Note Added: 51531
2019-05-08 12:26 DenisChenu Relationship added related to 14833
2019-05-08 12:27 DenisChenu Assigned To c_schmitz => dominikvitt
2019-05-08 12:27 DenisChenu Status assigned => resolved
2019-05-08 12:27 DenisChenu Resolution open => fixed
2019-05-08 12:27 DenisChenu Fixed in Version => 3.17.x
2019-05-08 12:27 DenisChenu Note Added: 51826
2019-05-29 16:39 c_schmitz Note Added: 52241
2019-05-29 16:39 c_schmitz Status resolved => closed