View Issue Details

This bug affects 1 person(s).
 6
IDProjectCategoryView StatusLast Update
13096Bug reportsSurvey editingpublic2018-06-27 15:29
Reporterblocka Assigned Todominikvitt 
PrioritylowSeverityminor 
Status closedResolutionunable to reproduce 
Product Version2.7x.x 
Summary13096: Config.php directive "deletenonvalues" not being
Description

I have an open public survey with the first group of questions being Contact Details (name, phone number, address).

Respondents will be completing the survey multiple times. At the completion of the first submission, I want to give them the option to repeat the survey again. So, in the end message, I have a link that says "Complete the survey again".

The link contains a flag to indicate it is a repeat submission, and I'm passing the contact details in parameters (so the participant doesn't need to enter this information again). I'm using the panel integration to map the URL parameters to the target questions.

The first parameter is "HideOrg". On the question group containing contact details, I have a relevance equation to hide the group if HideOrg=Y.

In testing, after the first submission, the contact questions are passed to the new survey submission -- yay, and responses are stored in the Response table.

The Contact question group is hidden with the relevance question: ((is_empty(HideOrg.NAOK) or HideOrg.NAOK != "Y"))

I proceed to complete the survey a second time, by clicking on a link in the End message that passes the Contact Group question responses back to the survey. The HideOrg is set to Y, so the Contact group questions are correctly hidden. I submit the survey, and when I check the responsive table discover that the contact values haven't been stored with the survey.

If I remove the relevance equation so that the organization fields are shown, then the contact values that were passed through were saved.

I have updated the config.php file to set the directive "deletenonvalues" to 0 to prevent deletion of response data for questions that are hidden.

This is what is in my config.php file:

'debug'=>1,
'debugsql'=>0, // Set this to 1 to enanble sql logging, only active when debug = 2
'allow_templates_to_overwrite_views'=>1,
'deletenonvalues'=>0

However, responses are still not saved when the Contact group questions are hidden by the relevance equation.

This looks like a bug to me?

TagsNo tags attached.
Attached Files
survey_312166.lss (24,348 bytes)
Bug heat6
Complete LimeSurvey version number (& build) version 2.72.6 build 171207
I will donate to the project if issue is resolvedYes
BrowserAll
Database type & versionmySQL 5.6.37
Server OS (if known)CentOs
Webserver software & version (if known)Apache
PHP Version7.0.19

Users monitoring this issue

There are no users monitoring this issue.

Activities

dominikvitt

dominikvitt

2018-06-20 11:48

developer   ~48246

Unable to reproduce on current LS version 3.12.1 using the same config variables you used in config.php.
Values from url parameters and values from input fields get saved into response table as expected.

DenisChenu

DenisChenu

2018-06-20 12:05

developer   ~48247

Last edited: 2018-06-20 12:10

@dominkvitt even if relevance equation is set to 0 == 1 ?

Tested : @blocka : it work the 1st time, but the second time Q13/Q14 etc is empty (no value in session, only in DB) : attended behaviour.
You need to prefill with an hidden equation .

c_schmitz

c_schmitz

2018-06-27 15:29

administrator   ~48339

Version 3.12.3+180627 released

Issue History

Date Modified Username Field Change
2017-12-21 21:01 blocka New Issue
2017-12-21 21:01 blocka File Added: survey_312166.lss
2018-05-23 11:18 LouisGac Assigned To => LouisGac
2018-05-23 11:18 LouisGac Status new => assigned
2018-05-23 12:54 LouisGac Priority none => low
2018-06-18 13:34 LouisGac Assigned To LouisGac => dominikvitt
2018-06-20 11:48 dominikvitt Status assigned => resolved
2018-06-20 11:48 dominikvitt Resolution open => unable to reproduce
2018-06-20 11:48 dominikvitt Note Added: 48246
2018-06-20 12:05 DenisChenu Note Added: 48247
2018-06-20 12:10 DenisChenu Note Edited: 48247
2018-06-27 15:29 c_schmitz Note Added: 48339
2018-06-27 15:29 c_schmitz Status resolved => closed
2019-11-01 17:25 c_schmitz Category Survey design => Survey editing