View Issue Details
| ID | Project | Category | View Status | Date Submitted | Last Update |
|---|---|---|---|---|---|
| 11481 | Bug reports | Survey taking | public | 2016-07-20 15:02 | 2020-03-13 18:46 |
| Reporter | YvesLanglois | Assigned To | |||
| Priority | low | Severity | minor | ||
| Status | closed | Resolution | open | ||
| Product Version | 2.50.x | ||||
| Summary | 11481: Mandatory warning triggered when it shouldn't | ||||
| Description | The mandatory warning appears when somenone is presented a question for the first time and didn't click Next button. This happens because he answered a question in a group further in the Survey, came back and change some answer and modified a condition and is presented with a new question. The mandatory check should be triggered only if the user tries to click next, not before he clicks. I use LS 2.50 build 160620. | ||||
| Additional Information | To reproduce the bug in this Survey example: 1-At FilterQuestion choose option "Question 2" then click next. This bug can be presented also in a simpler Survey. Group 1(question 1), Group 2 (question 2), Group 3 (question 3). Question 2 appears based on question 1's answer. First time, answer question 1 to skip question 2. Go back and change question 1's answer. Mandatory warning for question 2 appears. | ||||
| Tags | No tags attached. | ||||
| Attached Files | MandatoryQuestionsConditions.lss (18,758 bytes)
<?xml version="1.0" encoding="UTF-8"?>
<document>
<LimeSurveyDocType>Survey</LimeSurveyDocType>
<DBVersion>258</DBVersion>
<languages>
<language>en</language>
</languages>
<answers>
<fields>
<fieldname>qid</fieldname>
<fieldname>code</fieldname>
<fieldname>answer</fieldname>
<fieldname>sortorder</fieldname>
<fieldname>assessment_value</fieldname>
<fieldname>language</fieldname>
<fieldname>scale_id</fieldname>
</fields>
<rows>
<row>
<qid><![CDATA[343]]></qid>
<code><![CDATA[A2]]></code>
<answer><![CDATA[Question 2.]]></answer>
<sortorder><![CDATA[1]]></sortorder>
<assessment_value><![CDATA[0]]></assessment_value>
<language><![CDATA[en]]></language>
<scale_id><![CDATA[0]]></scale_id>
</row>
<row>
<qid><![CDATA[343]]></qid>
<code><![CDATA[A3]]></code>
<answer><![CDATA[Question 3.]]></answer>
<sortorder><![CDATA[2]]></sortorder>
<assessment_value><![CDATA[1]]></assessment_value>
<language><![CDATA[en]]></language>
<scale_id><![CDATA[0]]></scale_id>
</row>
</rows>
</answers>
<conditions>
<fields>
<fieldname>cid</fieldname>
<fieldname>qid</fieldname>
<fieldname>cqid</fieldname>
<fieldname>cfieldname</fieldname>
<fieldname>method</fieldname>
<fieldname>value</fieldname>
<fieldname>scenario</fieldname>
</fields>
<rows>
<row>
<cid><![CDATA[29]]></cid>
<qid><![CDATA[344]]></qid>
<cqid><![CDATA[343]]></cqid>
<cfieldname><![CDATA[677389X36X343]]></cfieldname>
<method><![CDATA[==]]></method>
<value><![CDATA[A2]]></value>
<scenario><![CDATA[1]]></scenario>
</row>
<row>
<cid><![CDATA[30]]></cid>
<qid><![CDATA[345]]></qid>
<cqid><![CDATA[343]]></cqid>
<cfieldname><![CDATA[677389X36X343]]></cfieldname>
<method><![CDATA[==]]></method>
<value><![CDATA[A3]]></value>
<scenario><![CDATA[1]]></scenario>
</row>
</rows>
</conditions>
<groups>
<fields>
<fieldname>gid</fieldname>
<fieldname>sid</fieldname>
<fieldname>group_name</fieldname>
<fieldname>group_order</fieldname>
<fieldname>description</fieldname>
<fieldname>language</fieldname>
<fieldname>randomization_group</fieldname>
<fieldname>grelevance</fieldname>
</fields>
<rows>
<row>
<gid><![CDATA[36]]></gid>
<sid><![CDATA[677389]]></sid>
<group_name><![CDATA[Group1]]></group_name>
<group_order><![CDATA[0]]></group_order>
<description/>
<language><![CDATA[en]]></language>
<randomization_group/>
<grelevance/>
</row>
<row>
<gid><![CDATA[37]]></gid>
<sid><![CDATA[677389]]></sid>
<group_name><![CDATA[Group2]]></group_name>
<group_order><![CDATA[1]]></group_order>
<description/>
<language><![CDATA[en]]></language>
<randomization_group/>
<grelevance/>
</row>
<row>
<gid><![CDATA[38]]></gid>
<sid><![CDATA[677389]]></sid>
<group_name><![CDATA[Group3]]></group_name>
<group_order><![CDATA[2]]></group_order>
<description/>
<language><![CDATA[en]]></language>
<randomization_group/>
<grelevance/>
</row>
</rows>
</groups>
<questions>
<fields>
<fieldname>qid</fieldname>
<fieldname>parent_qid</fieldname>
<fieldname>sid</fieldname>
<fieldname>gid</fieldname>
<fieldname>type</fieldname>
<fieldname>title</fieldname>
<fieldname>question</fieldname>
<fieldname>preg</fieldname>
<fieldname>help</fieldname>
<fieldname>other</fieldname>
<fieldname>mandatory</fieldname>
<fieldname>question_order</fieldname>
<fieldname>language</fieldname>
<fieldname>scale_id</fieldname>
<fieldname>same_default</fieldname>
<fieldname>relevance</fieldname>
<fieldname>modulename</fieldname>
</fields>
<rows>
<row>
<qid><![CDATA[343]]></qid>
<parent_qid><![CDATA[0]]></parent_qid>
<sid><![CDATA[677389]]></sid>
<gid><![CDATA[36]]></gid>
<type><![CDATA[L]]></type>
<title><![CDATA[FilterQuestion]]></title>
<question><![CDATA[Would you like to jump to question 2 or 3?]]></question>
<preg/>
<help/>
<other><![CDATA[N]]></other>
<mandatory><![CDATA[Y]]></mandatory>
<question_order><![CDATA[0]]></question_order>
<language><![CDATA[en]]></language>
<scale_id><![CDATA[0]]></scale_id>
<same_default><![CDATA[0]]></same_default>
<relevance><![CDATA[1]]></relevance>
</row>
<row>
<qid><![CDATA[344]]></qid>
<parent_qid><![CDATA[0]]></parent_qid>
<sid><![CDATA[677389]]></sid>
<gid><![CDATA[37]]></gid>
<type><![CDATA[Y]]></type>
<title><![CDATA[Question2]]></title>
<question><![CDATA[This is question 2.]]></question>
<preg/>
<help/>
<other><![CDATA[N]]></other>
<mandatory><![CDATA[Y]]></mandatory>
<question_order><![CDATA[0]]></question_order>
<language><![CDATA[en]]></language>
<scale_id><![CDATA[0]]></scale_id>
<same_default><![CDATA[0]]></same_default>
<relevance><![CDATA[((677389X36X343.NAOK == "A2"))]]></relevance>
<modulename/>
</row>
<row>
<qid><![CDATA[345]]></qid>
<parent_qid><![CDATA[0]]></parent_qid>
<sid><![CDATA[677389]]></sid>
<gid><![CDATA[37]]></gid>
<type><![CDATA[Y]]></type>
<title><![CDATA[Question3]]></title>
<question><![CDATA[This is question 3.]]></question>
<preg/>
<help/>
<other><![CDATA[N]]></other>
<mandatory><![CDATA[Y]]></mandatory>
<question_order><![CDATA[1]]></question_order>
<language><![CDATA[en]]></language>
<scale_id><![CDATA[0]]></scale_id>
<same_default><![CDATA[0]]></same_default>
<relevance><![CDATA[((677389X36X343.NAOK == "A3"))]]></relevance>
<modulename/>
</row>
<row>
<qid><![CDATA[346]]></qid>
<parent_qid><![CDATA[0]]></parent_qid>
<sid><![CDATA[677389]]></sid>
<gid><![CDATA[38]]></gid>
<type><![CDATA[M]]></type>
<title><![CDATA[Question4]]></title>
<question><![CDATA[This is question 4.]]></question>
<preg/>
<help/>
<other><![CDATA[N]]></other>
<mandatory><![CDATA[N]]></mandatory>
<question_order><![CDATA[0]]></question_order>
<language><![CDATA[en]]></language>
<scale_id><![CDATA[0]]></scale_id>
<same_default><![CDATA[0]]></same_default>
<relevance><![CDATA[1]]></relevance>
</row>
</rows>
</questions>
<subquestions>
<fields>
<fieldname>qid</fieldname>
<fieldname>parent_qid</fieldname>
<fieldname>sid</fieldname>
<fieldname>gid</fieldname>
<fieldname>type</fieldname>
<fieldname>title</fieldname>
<fieldname>question</fieldname>
<fieldname>preg</fieldname>
<fieldname>help</fieldname>
<fieldname>other</fieldname>
<fieldname>mandatory</fieldname>
<fieldname>question_order</fieldname>
<fieldname>language</fieldname>
<fieldname>scale_id</fieldname>
<fieldname>same_default</fieldname>
<fieldname>relevance</fieldname>
<fieldname>modulename</fieldname>
</fields>
<rows>
<row>
<qid><![CDATA[347]]></qid>
<parent_qid><![CDATA[346]]></parent_qid>
<sid><![CDATA[677389]]></sid>
<gid><![CDATA[38]]></gid>
<type><![CDATA[T]]></type>
<title><![CDATA[SQ001]]></title>
<question><![CDATA[sq001]]></question>
<other><![CDATA[N]]></other>
<question_order><![CDATA[1]]></question_order>
<language><![CDATA[en]]></language>
<scale_id><![CDATA[0]]></scale_id>
<same_default><![CDATA[0]]></same_default>
<relevance><![CDATA[1]]></relevance>
</row>
<row>
<qid><![CDATA[348]]></qid>
<parent_qid><![CDATA[346]]></parent_qid>
<sid><![CDATA[677389]]></sid>
<gid><![CDATA[38]]></gid>
<type><![CDATA[T]]></type>
<title><![CDATA[sq002]]></title>
<question><![CDATA[sq002]]></question>
<other><![CDATA[N]]></other>
<question_order><![CDATA[2]]></question_order>
<language><![CDATA[en]]></language>
<scale_id><![CDATA[0]]></scale_id>
<same_default><![CDATA[0]]></same_default>
<relevance><![CDATA[1]]></relevance>
</row>
<row>
<qid><![CDATA[349]]></qid>
<parent_qid><![CDATA[346]]></parent_qid>
<sid><![CDATA[677389]]></sid>
<gid><![CDATA[38]]></gid>
<type><![CDATA[T]]></type>
<title><![CDATA[sq003]]></title>
<question><![CDATA[sq003]]></question>
<other><![CDATA[N]]></other>
<question_order><![CDATA[3]]></question_order>
<language><![CDATA[en]]></language>
<scale_id><![CDATA[0]]></scale_id>
<same_default><![CDATA[0]]></same_default>
<relevance><![CDATA[1]]></relevance>
</row>
</rows>
</subquestions>
<surveys>
<fields>
<fieldname>sid</fieldname>
<fieldname>admin</fieldname>
<fieldname>expires</fieldname>
<fieldname>startdate</fieldname>
<fieldname>adminemail</fieldname>
<fieldname>anonymized</fieldname>
<fieldname>faxto</fieldname>
<fieldname>format</fieldname>
<fieldname>savetimings</fieldname>
<fieldname>template</fieldname>
<fieldname>language</fieldname>
<fieldname>additional_languages</fieldname>
<fieldname>datestamp</fieldname>
<fieldname>usecookie</fieldname>
<fieldname>allowregister</fieldname>
<fieldname>allowsave</fieldname>
<fieldname>autonumber_start</fieldname>
<fieldname>autoredirect</fieldname>
<fieldname>allowprev</fieldname>
<fieldname>printanswers</fieldname>
<fieldname>ipaddr</fieldname>
<fieldname>refurl</fieldname>
<fieldname>publicstatistics</fieldname>
<fieldname>publicgraphs</fieldname>
<fieldname>listpublic</fieldname>
<fieldname>htmlemail</fieldname>
<fieldname>sendconfirmation</fieldname>
<fieldname>tokenanswerspersistence</fieldname>
<fieldname>assessments</fieldname>
<fieldname>usecaptcha</fieldname>
<fieldname>usetokens</fieldname>
<fieldname>bounce_email</fieldname>
<fieldname>attributedescriptions</fieldname>
<fieldname>emailresponseto</fieldname>
<fieldname>emailnotificationto</fieldname>
<fieldname>tokenlength</fieldname>
<fieldname>showxquestions</fieldname>
<fieldname>showgroupinfo</fieldname>
<fieldname>shownoanswer</fieldname>
<fieldname>showqnumcode</fieldname>
<fieldname>bouncetime</fieldname>
<fieldname>bounceprocessing</fieldname>
<fieldname>bounceaccounttype</fieldname>
<fieldname>bounceaccounthost</fieldname>
<fieldname>bounceaccountpass</fieldname>
<fieldname>bounceaccountencryption</fieldname>
<fieldname>bounceaccountuser</fieldname>
<fieldname>showwelcome</fieldname>
<fieldname>showprogress</fieldname>
<fieldname>questionindex</fieldname>
<fieldname>navigationdelay</fieldname>
<fieldname>nokeyboard</fieldname>
<fieldname>alloweditaftercompletion</fieldname>
<fieldname>googleanalyticsstyle</fieldname>
<fieldname>googleanalyticsapikey</fieldname>
</fields>
<rows>
<row>
<sid><![CDATA[677389]]></sid>
<admin><![CDATA[Yves Langlois]]></admin>
<adminemail><![CDATA[yves.langlois@revenuquebec.ca]]></adminemail>
<anonymized><![CDATA[N]]></anonymized>
<faxto/>
<format><![CDATA[G]]></format>
<savetimings><![CDATA[N]]></savetimings>
<template><![CDATA[default]]></template>
<language><![CDATA[en]]></language>
<additional_languages/>
<datestamp><![CDATA[N]]></datestamp>
<usecookie><![CDATA[N]]></usecookie>
<allowregister><![CDATA[N]]></allowregister>
<allowsave><![CDATA[Y]]></allowsave>
<autonumber_start><![CDATA[0]]></autonumber_start>
<autoredirect><![CDATA[N]]></autoredirect>
<allowprev><![CDATA[Y]]></allowprev>
<printanswers><![CDATA[N]]></printanswers>
<ipaddr><![CDATA[N]]></ipaddr>
<refurl><![CDATA[N]]></refurl>
<publicstatistics><![CDATA[N]]></publicstatistics>
<publicgraphs><![CDATA[N]]></publicgraphs>
<listpublic><![CDATA[N]]></listpublic>
<htmlemail><![CDATA[Y]]></htmlemail>
<sendconfirmation><![CDATA[Y]]></sendconfirmation>
<tokenanswerspersistence><![CDATA[N]]></tokenanswerspersistence>
<assessments><![CDATA[N]]></assessments>
<usecaptcha><![CDATA[N]]></usecaptcha>
<usetokens><![CDATA[N]]></usetokens>
<bounce_email><![CDATA[yves.langlois@revenuquebec.ca]]></bounce_email>
<emailresponseto/>
<emailnotificationto/>
<tokenlength><![CDATA[15]]></tokenlength>
<showxquestions><![CDATA[Y]]></showxquestions>
<showgroupinfo><![CDATA[B]]></showgroupinfo>
<shownoanswer><![CDATA[N]]></shownoanswer>
<showqnumcode><![CDATA[X]]></showqnumcode>
<bounceprocessing><![CDATA[N]]></bounceprocessing>
<showwelcome><![CDATA[Y]]></showwelcome>
<showprogress><![CDATA[Y]]></showprogress>
<questionindex><![CDATA[0]]></questionindex>
<navigationdelay><![CDATA[0]]></navigationdelay>
<nokeyboard><![CDATA[N]]></nokeyboard>
<alloweditaftercompletion><![CDATA[N]]></alloweditaftercompletion>
</row>
</rows>
</surveys>
<surveys_languagesettings>
<fields>
<fieldname>surveyls_survey_id</fieldname>
<fieldname>surveyls_language</fieldname>
<fieldname>surveyls_title</fieldname>
<fieldname>surveyls_description</fieldname>
<fieldname>surveyls_welcometext</fieldname>
<fieldname>surveyls_endtext</fieldname>
<fieldname>surveyls_url</fieldname>
<fieldname>surveyls_urldescription</fieldname>
<fieldname>surveyls_email_invite_subj</fieldname>
<fieldname>surveyls_email_invite</fieldname>
<fieldname>surveyls_email_remind_subj</fieldname>
<fieldname>surveyls_email_remind</fieldname>
<fieldname>surveyls_email_register_subj</fieldname>
<fieldname>surveyls_email_register</fieldname>
<fieldname>surveyls_email_confirm_subj</fieldname>
<fieldname>surveyls_email_confirm</fieldname>
<fieldname>surveyls_dateformat</fieldname>
<fieldname>surveyls_attributecaptions</fieldname>
<fieldname>email_admin_notification_subj</fieldname>
<fieldname>email_admin_notification</fieldname>
<fieldname>email_admin_responses_subj</fieldname>
<fieldname>email_admin_responses</fieldname>
<fieldname>surveyls_numberformat</fieldname>
<fieldname>attachments</fieldname>
</fields>
<rows>
<row>
<surveyls_survey_id><![CDATA[677389]]></surveyls_survey_id>
<surveyls_language><![CDATA[en]]></surveyls_language>
<surveyls_title><![CDATA[MandatoryQuestionsConditions]]></surveyls_title>
<surveyls_description/>
<surveyls_welcometext/>
<surveyls_endtext/>
<surveyls_url/>
<surveyls_urldescription/>
<surveyls_email_invite_subj><![CDATA[Invitation to participate in a survey]]></surveyls_email_invite_subj>
<surveyls_email_invite><![CDATA[Dear {FIRSTNAME},<br />
<br />
you have been invited to participate in a survey.<br />
<br />
The survey is titled:<br />
"{SURVEYNAME}"<br />
<br />
"{SURVEYDESCRIPTION}"<br />
<br />
To participate, please click on the link below.<br />
<br />
Sincerely,<br />
<br />
{ADMINNAME} ({ADMINEMAIL})<br />
<br />
----------------------------------------------<br />
Click here to do the survey:<br />
{SURVEYURL}<br />
<br />
If you do not want to participate in this survey and don't want to receive any more invitations please click the following link:<br />
{OPTOUTURL}<br />
<br />
If you are blacklisted but want to participate in this survey and want to receive invitations please click the following link:<br />
{OPTINURL}]]></surveyls_email_invite>
<surveyls_email_remind_subj><![CDATA[Reminder to participate in a survey]]></surveyls_email_remind_subj>
<surveyls_email_remind><![CDATA[Dear {FIRSTNAME},<br />
<br />
Recently we invited you to participate in a survey.<br />
<br />
We note that you have not yet completed the survey, and wish to remind you that the survey is still available should you wish to take part.<br />
<br />
The survey is titled:<br />
"{SURVEYNAME}"<br />
<br />
"{SURVEYDESCRIPTION}"<br />
<br />
To participate, please click on the link below.<br />
<br />
Sincerely,<br />
<br />
{ADMINNAME} ({ADMINEMAIL})<br />
<br />
----------------------------------------------<br />
Click here to do the survey:<br />
{SURVEYURL}<br />
<br />
If you do not want to participate in this survey and don't want to receive any more invitations please click the following link:<br />
{OPTOUTURL}]]></surveyls_email_remind>
<surveyls_email_register_subj><![CDATA[Survey registration confirmation]]></surveyls_email_register_subj>
<surveyls_email_register><![CDATA[Dear {FIRSTNAME},<br />
<br />
You, or someone using your email address, have registered to participate in an online survey titled {SURVEYNAME}.<br />
<br />
To complete this survey, click on the following URL:<br />
<br />
{SURVEYURL}<br />
<br />
If you have any questions about this survey, or if you did not register to participate and believe this email is in error, please contact {ADMINNAME} at {ADMINEMAIL}.]]></surveyls_email_register>
<surveyls_email_confirm_subj><![CDATA[Confirmation of your participation in our survey]]></surveyls_email_confirm_subj>
<surveyls_email_confirm><![CDATA[Dear {FIRSTNAME},<br />
<br />
this email is to confirm that you have completed the survey titled {SURVEYNAME} and your response has been saved. Thank you for participating.<br />
<br />
If you have any further questions about this email, please contact {ADMINNAME} on {ADMINEMAIL}.<br />
<br />
Sincerely,<br />
<br />
{ADMINNAME}]]></surveyls_email_confirm>
<surveyls_dateformat><![CDATA[5]]></surveyls_dateformat>
<email_admin_notification_subj><![CDATA[Response submission for survey {SURVEYNAME}]]></email_admin_notification_subj>
<email_admin_notification><![CDATA[Hello,<br />
<br />
A new response was submitted for your survey '{SURVEYNAME}'.<br />
<br />
Click the following link to reload the survey:<br />
{RELOADURL}<br />
<br />
Click the following link to see the individual response:<br />
{VIEWRESPONSEURL}<br />
<br />
Click the following link to edit the individual response:<br />
{EDITRESPONSEURL}<br />
<br />
View statistics by clicking here:<br />
{STATISTICSURL}]]></email_admin_notification>
<email_admin_responses_subj><![CDATA[Response submission for survey {SURVEYNAME} with results]]></email_admin_responses_subj>
<email_admin_responses><![CDATA[Hello,<br />
<br />
A new response was submitted for your survey '{SURVEYNAME}'.<br />
<br />
Click the following link to reload the survey:<br />
{RELOADURL}<br />
<br />
Click the following link to see the individual response:<br />
{VIEWRESPONSEURL}<br />
<br />
Click the following link to edit the individual response:<br />
{EDITRESPONSEURL}<br />
<br />
View statistics by clicking here:<br />
{STATISTICSURL}<br />
<br />
<br />
The following answers were given by the participant:<br />
{ANSWERTABLE}]]></email_admin_responses>
<surveyls_numberformat><![CDATA[1]]></surveyls_numberformat>
</row>
</rows>
</surveys_languagesettings>
</document>
| ||||
| Bug heat | 6 | ||||
| Complete LimeSurvey version number (& build) | |||||
| I will donate to the project if issue is resolved | |||||
| Browser | |||||
| Database type & version | |||||
| Server OS (if known) | |||||
| Webserver software & version (if known) | |||||
| PHP Version | |||||
|
Maybe, fopr mandatory : we must check NULL vs empty ? But for numercial : we always have null .... |
|
|
Can also reproduce this issue using 2.06lts (last build) version. |
|
|
This version of LimeSurvey is not longer supported. Please check so that the issue is fixed in a more recent version of LimeSurvey. If it's not, please reopen this bug report. Thank you. |
|
| Date Modified | Username | Field | Change |
|---|---|---|---|
| 2016-07-20 15:02 | YvesLanglois | New Issue | |
| 2016-07-20 15:02 | YvesLanglois | File Added: MandatoryQuestionsConditions.lss | |
| 2016-07-22 10:33 | DenisChenu | Project | Feature requests => Bug reports |
| 2016-07-22 10:34 | DenisChenu | Severity | feature => minor |
| 2016-07-22 10:34 | DenisChenu | Description Updated | |
| 2016-07-22 10:35 | DenisChenu | Note Added: 40013 | |
| 2016-07-22 10:45 | c_schmitz | Priority | none => low |
| 2016-07-22 11:10 | Ben_V | Note Added: 40015 | |
| 2017-06-13 11:38 | c_schmitz | Product Version | => 2.50.x |
| 2018-05-23 12:07 |
|
Assigned To | => LouisGac |
| 2018-05-23 12:07 |
|
Status | new => assigned |
| 2018-05-23 12:07 |
|
Status | assigned => confirmed |
| 2020-03-13 18:46 | c_schmitz | Note Added: 56462 | |
| 2020-03-13 18:46 | c_schmitz | Status | confirmed => closed |