View Issue Details

This issue affects 1 person(s).
 4
IDProjectCategoryView StatusLast Update
05070Bug reportsSurvey takingpublic2011-04-01 12:38
Reporterpnarula Assigned Toc_schmitz  
PrioritynormalSeverityminor 
Status closedResolutionno change required 
Product Version1.91RC5 
Summary05070: Incorrectly shows the next button in place of submit, when conditions are used.
Description

In case the format of survey is Question-by-Question.
When there are two different questions (say Q2a, Q2b) to be shown based
on the answer of a question (say Q1), and Q2a/Q2b is the last question,
the survey incorrectly shows Next button, in place of Submit button,
which gives user the impression that there are more questions to come
and he can modify the previous answers if he wants to!

Steps To Reproduce
  1. Create a survey, with format: Question by question.
  2. Add a group. To that add questions Q1 (with two options, a b), Q2a, Q2b.
  3. To Q2a, add condition that it is executed only iff answer to Q1 is a.
  4. To Q2b, add condition that it is executed only iff answer to Q1 is b.
  5. Test the survey. When you'll select a in Q1, it will incorrectly show Next button on the next page.
Additional Information

-

TagsNo tags attached.
Bug heat4
Complete LimeSurvey version number (& build)9939
I will donate to the project if issue is resolvedYes
BrowserFirefox
Database type & versionMySQL 5.1.41
Server OS (if known)Windows 7
Webserver software & version (if known)Apache 2.2.14
PHP Version5.3.1
Git branch / Pull Request URL

Users monitoring this issue

There are no users monitoring this issue.

Activities

c_schmitz

c_schmitz

2011-03-31 21:59

administrator   ~14626

pnarula, are you a GSOC participant?

pnarula

pnarula

2011-04-01 09:21

reporter   ~14628

Yes, schmitz.

I am Pooja Narula, a sophomore majoring in IT from India. I am keenly interested in working with Limesurvey for GSOC 2011, so I was just playing with the system and found this. I am looking into the code, to see if I could fix this.

c_schmitz

c_schmitz

2011-04-01 10:41

administrator   ~14629

Ok, would be great if you can provide a fix.

pnarula

pnarula

2011-04-01 11:36

reporter   ~14631

I think this problem is more fundamental than it seems. Consider the situation where you a question (say Q1) with two options (a, b), and you have to choose between one of them. If the answer to this is a it will show Q2a (and then ends), whereas if its b, then there are no more question, and it ends after that.

One solution here would be to dynamically change between Next and Submit based on the user selection, and conditions. But this is not very neat solution. Moreover, if the conditions are more complex this may not be practical.

Another simple and more general solution is to give the administrator an option to add a 'Confirm Submission' page (this option can be in the general settings for the survey) with a previous button, so that these situations (and many other of similar nature) can be taken care of.

Any comments/suggestions on this are welcome. Thanks.

Issue History

Date Modified Username Field Change
2011-03-31 21:23 pnarula New Issue
2011-03-31 21:59 c_schmitz Note Added: 14626
2011-04-01 09:21 pnarula Note Added: 14628
2011-04-01 10:41 c_schmitz Note Added: 14629
2011-04-01 11:36 pnarula Note Added: 14631
2011-04-01 12:38 c_schmitz Status new => closed
2011-04-01 12:38 c_schmitz Assigned To => c_schmitz
2011-04-01 12:38 c_schmitz Resolution open => no change required