View Issue Details

This issue affects 1 person(s).
 6
IDProjectCategoryView StatusLast Update
07077Bug reportsSurvey takingpublic2026-11-19 23:34
ReporterDenisChenu Assigned To 
PrioritynormalSeverityminor 
Status closedResolutionwon't fix 
Summary07077: Usuability: user can see question not for him with text/numeric question type
Description

If a question have some condition, it can be shown at user even if this user enter in condition : at each keyup the condition is tested

Steps To Reproduce

Import lss files for the demonstration. The second group is somthing really used: a user of 34 years see "You have less than 21, you can do the survey".

Additional Information

In text and numeric question type: the showcondition happen at keyup, not at blur/change/

I think it's best to move it to blur or change. The numeric question type need to be reviewed to limit the caracters to be number (and dot minus, and maybe thousand seperator).

Denis

TagsNo tags attached.
Attached Files
Bug heat6
Complete LimeSurvey version number (& build)121213
I will donate to the project if issue is resolvedNo
BrowserFF
Database type & versionnot relevant
Server OS (if known)not relevant
Webserver software & version (if known)not relevant
PHP Versionnot relevant
Git branch / Pull Request URL

Relationships

related to 06271 closedTMSWhite text entry fields use onchange instead of onkeyup events to propagate changes 

Users monitoring this issue

There are no users monitoring this issue.

Activities

DenisChenu

DenisChenu

2012-12-13 15:43

developer   ~23228

Last edited: 2012-12-13 15:45

With HTML we can use : http://www.w3.org/TR/html-markup/input.number.html to be more easy on smartphone.

And use http://modernizr.com/ for not compatible browser

TMSWhite

TMSWhite

2012-12-13 23:42

reporter   ~23232

Given that there are legitimate use cases for either case, maybe we should give authors the ability to specify whether they want LS to use onchange/onblur or onkeydown (but with more intuitive labels).

DenisChenu

DenisChenu

2012-12-14 08:40

developer   ~23235

Last edited: 2012-12-14 08:41

Yes, you're right.

I think we can move checkconditions and fixnum_checkconditions in an external js files. Include this js file like the other js files : em_javascript.js ?

And use class to checkcondition function option.

For exemple:
$("#limesurvey").delegate(".text.numeric.integer.onblur","onblur change",function(){} });
$("#limesurvey").delegate(".text.numeric.integer:not(.onblur)","keyup",function(){} });

etc ....

Maybe use another function (for ex: CheckCondition) to do the job one question by one question and test/test/test and test.

Thomas: youn included whole phpjs in em_javascript.js: did this is necessary ? All em_javascript function are used ?

Denis

c_schmitz

c_schmitz

2026-11-19 23:34

administrator   ~87781

Questions update while the respondent types. This was done on purpose, so that dependent questions appear without leaving the field. We will keep it this way.

Issue History

Date Modified Username Field Change
2012-12-13 15:43 DenisChenu New Issue
2012-12-13 15:43 DenisChenu File Added: limesurvey_survey_agequestion.lss
2012-12-13 15:43 DenisChenu Note Added: 23228
2012-12-13 15:45 DenisChenu Note Edited: 23228
2012-12-13 19:19 DenisChenu Relationship added related to 06271
2012-12-13 23:42 TMSWhite Note Added: 23232
2012-12-14 08:40 DenisChenu Note Added: 23235
2012-12-14 08:40 DenisChenu Project Bug reports => Development
2012-12-14 08:41 DenisChenu Product Version 2.00+ => 2.00
2012-12-14 08:41 DenisChenu Note Edited: 23235
2026-11-19 22:50 c_schmitz Status new => acknowledged
2026-11-19 23:34 c_schmitz Project Development => Bug reports
2026-11-19 23:34 c_schmitz Note Added: 87781
2026-11-19 23:34 c_schmitz Bug heat 4 => 6
2026-11-19 23:34 c_schmitz Status acknowledged => closed
2026-11-19 23:34 c_schmitz Resolution open => won't fix
2026-11-19 23:34 c_schmitz Product Version 2.00 =>