View Issue Details

This bug affects 1 person(s).
 6
IDProjectCategoryView StatusLast Update
06057Bug reportsSurvey takingpublic2012-06-07 11:04
Reporteruser19571Assigned Totpartner  
PrioritynormalSeveritypartial_block 
Status closedResolutionfixed 
Product Version2.00b1 
Fixed in Version1.92+ 
Summary06057: Hitting RETURN while typing in M.C. 'Other' of non-tracked survey looses all survey input
Description

In a survey which is not tracked (no tokens), if the user types text into certain fields and presses ENTER (Return) by mistake, the survey disappears and is replaced with a screen asking the user to provide login credentials. Since the user never saved anything, they have no login credentials to provide.

All input entered into the survey is lost at that point. Clicking "return to survey" on the login screen returns to a completely empty survey.

Most likely there is a bug which sends control to the 'resume' logic when it should instead ask the user if they want to 'save' their work (actually, it would be preferable to make Return not automatically push -any- buttons).

Steps To Reproduce

Load the attached survey and activate it. Reply "no" to the tracking question.

In another browser window, visit the survey URL.

Enter some text into the 'Other' input field of the multiple-choice question (enter more text than is visible -- not sure if that matters).

Press RETURN. The survey is lost at that point.

TagsNo tags attached.
Attached Files
Bug heat6
Complete LimeSurvey version number (& build)120425
I will donate to the project if issue is resolvedYes
BrowserFirefox 12 or Chromium 18.8.1025.151(Ubuntu)
Database type & version155
Server OS (if known)Ubuntu 11.10 64-bit
Webserver software & version (if known)apache 2.2
PHP Versionphp5 5.3.6

Users monitoring this issue

There are no users monitoring this issue.

Activities

user19571

2012-05-02 00:37

  ~18532

Using "All in One" mode seems to be necessary for the bug to happen.

tpartner

tpartner

2012-05-04 14:43

partner   ~18577

This is occuring because clicking "Enter" while in a text input will automaticlly click the next type=submit element in the form which happens to be the "Load unfinished survey" button (this is normal browser behaviour).

What is not normal is that for some reason the "Load unfinished survey" button has been given a type=submit.

Carsten, is there any reason why the "Load unfinished survey" button isn't a type=button?

Of course, if we fix that, then clicking "Enter" while in a text input will submit the page but that's better that firing the "Load unfinished survey" function.

c_schmitz

c_schmitz

2012-05-07 09:13

administrator   ~18586

tpartner, I would not know of any reason for that. Can you try and see for your suggested fix`?

c_schmitz

c_schmitz

2012-05-08 10:49

administrator   ~18625

Anyway, the form needs to be submitted because the results need to be saved before the REsume forms comes up. Maybe that's the reason?

tpartner

tpartner

2012-05-29 18:40

partner   ~18995

Fixed.

I switched the loadall elements to type="button" (similar to the saveallbtn element).

The form still submits when clicking "Enter" in a text input (which is normal browser behaviour) but no longer goes to the "Load unfinished survey" screen.

Issue History

Date Modified Username Field Change
2012-05-01 07:36 user19571 New Issue
2012-05-01 07:36 user19571 File Added: limesurvey_survey_BUG.lss
2012-05-02 00:37 user19571 Note Added: 18532
2012-05-02 00:37 user19571 Issue Monitored: user19571
2012-05-04 14:43 tpartner Assigned To => c_schmitz
2012-05-04 14:43 tpartner Status new => assigned
2012-05-04 14:43 tpartner Note Added: 18577
2012-05-07 09:13 c_schmitz Assigned To c_schmitz => tpartner
2012-05-07 09:13 c_schmitz Note Added: 18586
2012-05-08 10:49 c_schmitz Note Added: 18625
2012-05-29 18:40 tpartner Note Added: 18995
2012-05-29 18:40 tpartner Status assigned => resolved
2012-05-29 18:40 tpartner Resolution open => fixed
2012-06-07 11:04 c_schmitz Status resolved => closed
2012-06-07 11:04 c_schmitz Fixed in Version => 1.92+