View Issue Details

This bug affects 1 person(s).
 8
IDProjectCategoryView StatusLast Update
03664Bug reportsSurvey takingpublic2009-09-19 18:09
Reporterjelo Assigned Tolemeur  
PrioritynormalSeverityminor 
Status closedResolutionwon't fix 
Product Version1.85+ 
Summary03664: Popup when "multiple options" "Other textfield" empty ( $showpopups = 0; )
Description

question type: multiple options

When "Other textfield" is ticked at runtime and no text is entered a popup pops up. The config is set to $showpopups = 0;

TagsNo tags attached.
Attached Files
demo_otherfield.csv (3,804 bytes)
Bug heat8
Complete LimeSurvey version number (& build)7561
I will donate to the project if issue is resolved
BrowserFirefox 3.5.2
Database type & versionMySQL 5.0.81
Server OS (if known)CENTOS 4.8 i686
Webserver software & version (if known)Apache 1.3.41
PHP Version5.2.10

Users monitoring this issue

There are no users monitoring this issue.

Activities

jelo

jelo

2009-09-08 09:28

partner   ~09460

When ticking a other field, should the entering of a text be mandatory or not?

I think it shouldn't be enforced or be possible to specify.

Currently (Optional question) with other field are not showing a popup or warning when no text is entered. Might be another ticket, but that can be decided later.

Mazi

Mazi

2009-09-10 15:22

updater   ~09498

jelo, can you upload a small sample survey?

About your question: There is one (or probably more) ticket about other field and mandatory check where developer lemeur explains the handling and the changes which were made a few weeks ago.

jelo

jelo

2009-09-10 17:41

partner   ~09505

Survey attached.
Two questions. All "Non mandatory".

First question type "List (radio)" with other field.
Second question type "Multiple options" with other field.

On both questions you tick the other field but didn't enter any text into the field.

On "List (radio)" nothing happens (no warning).
On "Multiple options" you get a warning that you entered no text. The warning is a popup. Config is set to $showpopups = 0;

jelo

jelo

2009-09-10 17:48

partner   ~09506

When doing the same with all questions mandatory nothing changed.

Question is: Would it make sense to force people to fill out the text field
only when mandatory is choosen?.

Personally I like it when I can tick other, but aren't forced to enter something.

Mazi

Mazi

2009-09-10 18:43

updater   ~09508

Thibault, I assign this one to you (ElMatador is on vacation) because you ahve dealt with this mandatory stuff before. Maybe you can explain if the current behavior is caused by design or if it's a bug.

lemeur

lemeur

2009-09-10 23:02

developer   ~09517

See http://docs.limesurvey.org/tiki-index.php?page=Question+attributes#other_comment_mandatory for a full explaination of this.

In summary this is no bug: type M question must enforce other text input as the checkbox is just a visual helper but has no true meaning in DB.

<quote>Personally I like it when I can tick other, but aren't forced to enter something. </quote>
The use type P question (checkbox + comments).
Fixing this requires creating a new question type because fixing the old one would make old survey structures and exported data not compatibles.

jelo

jelo

2009-09-11 00:14

partner   ~09523

Thanks for the link. This answer my additional question. Sorry that I didn't searched the documentation for that.

Back to the main issue. The Popup when "multiple options" "Other textfield" is empty and $showpopups = 0;

Is that reproducible with the sample survey?

lemeur

lemeur

2009-09-11 21:37

developer   ~09532

I can disbale the popup when showpopups=0. But this will lead in participant checking the "other checkbox" without filling in the other text ==> nothing will be recorded in DB so the answer will be considered to be "not answered" and not "Other".

Carsten, you're opinion on this ?

jelo

jelo

2009-09-11 22:30

partner   ~09535

Not sure if I misunderstand something but I thought that instead of the Javascript popup the red error message will be displayed and the user is still forced to fill it out.

c_schmitz

c_schmitz

2009-09-12 16:29

administrator   ~09539

showpopups refers only to popups AFTER a page was submitted and there are still mandatory answers missing. Unfortunately there are also some checks which occurs before the page is submitted.

lemeur

lemeur

2009-09-19 18:09

developer   ~09609

@jelo,

Carsten explained it right: the mandatory check code that is evaluated after submission of a page (and which is able to display red error message) is not used for this specific case. The popup that is displayed in this case is just a check on the current page, and if it fails it cancels the submit page action so that the mandatory check code is not run.

I have to set this ticket as won't fix because trying to fix this would require too much work on LS1. LS2 design won't let such weird things occur.

Regards,
Thibault

Issue History

Date Modified Username Field Change
2009-09-08 09:25 jelo New Issue
2009-09-08 09:25 jelo Status new => assigned
2009-09-08 09:25 jelo Assigned To => user372
2009-09-08 09:25 jelo Build Number => 7561
2009-09-08 09:25 jelo Browser => Firefox 3.5.2
2009-09-08 09:25 jelo Database & DB-Version => MySQL 5.0.81
2009-09-08 09:25 jelo Operating System (Server) => CENTOS 4.8 i686
2009-09-08 09:25 jelo Webserver => Apache 1.3.41
2009-09-08 09:25 jelo PHP Version => 5.2.10
2009-09-08 09:28 jelo Note Added: 09460
2009-09-10 15:22 Mazi Note Added: 09498
2009-09-10 17:35 jelo File Added: demo_otherfield.csv
2009-09-10 17:41 jelo Note Added: 09505
2009-09-10 17:48 jelo Note Added: 09506
2009-09-10 18:42 Mazi Assigned To user372 => lemeur
2009-09-10 18:43 Mazi Note Added: 09508
2009-09-10 23:02 lemeur Note Added: 09517
2009-09-10 23:02 lemeur Status assigned => feedback
2009-09-11 00:14 jelo Note Added: 09523
2009-09-11 21:37 lemeur Status feedback => assigned
2009-09-11 21:37 lemeur Assigned To lemeur => c_schmitz
2009-09-11 21:37 lemeur Note Added: 09532
2009-09-11 22:30 jelo Note Added: 09535
2009-09-12 16:29 c_schmitz Note Added: 09539
2009-09-12 16:29 c_schmitz Assigned To c_schmitz => lemeur
2009-09-19 18:09 lemeur Note Added: 09609
2009-09-19 18:09 lemeur Status assigned => closed
2009-09-19 18:09 lemeur Resolution open => won't fix
2010-10-25 00:18 c_schmitz Category Survey at Runtime => Survey taking