View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
15615 | Bug reports | Survey taking | public | 2019-11-23 16:54 | 2020-11-16 09:31 |
Reporter | Mazi | Assigned To | gabrieljenik | ||
Priority | low | Severity | minor | ||
Status | closed | Resolution | fixed | ||
Product Version | 3.20.x | ||||
Summary | 15615: Mandatory multiple choice questions are not assigned a red background if not being answered | ||||
Description | When not answering a mandatory array question and clicking next, the not answered question gets highligjted with a red border, see screenshots. | ||||
Steps To Reproduce | Import the attached survey. | ||||
Additional Information | This seems to be a general issue since it shows up at fruity and vanilla template. The multiple choice question is missing CSS class "input-error" which gets assigned to not answered mandatory questions and comes with the CSS for the red border. | ||||
Tags | No tags attached. | ||||
Bug heat | 10 | ||||
Complete LimeSurvey version number (& build) | Version 3.20 | ||||
I will donate to the project if issue is resolved | No | ||||
Browser | Chrome | ||||
Database type & version | MySQL 5 | ||||
Server OS (if known) | Ubuntu 18 | ||||
Webserver software & version (if known) | Apache 2 | ||||
PHP Version | 7.2 | ||||
@cdorin, this was reported by a customer who would be happy about a quick fix for the next release. Shouldn't be too trickyy to fix. |
|
Deleted the SS and .lss file - ticket now public. Thx for report, Mazi |
|
I see 2 problems here. 1) This is general, not ony for checkboxes. 2) This is not only for mandatory validation. Suggestions:
Comments? @DenisChenu @ollehar |
|
My own opinion :
Then : my opinion
Yes moving mandatory to expression manager is a great thing to do BUT : it's not a little fix ;) |
|
Some other picture |
|
PR: https://github.com/LimeSurvey/LimeSurvey/pull/1577 Added new event handler for question-container, to evaluat status of its tips and then add/remove the error class This will not prevent problem #1 said here. Neither it will prevent validations to be trigered at the ver begining when the form is still empty (clean). I think both shuld be handled on separates stories. |
|
Code reviewed. Travis should be in green. |
|
It's a template issue in my opinion. In fact : i leave validation BUT add the border only when submitted (PHP) … |
|
Fix committed to 3.x-LTS branch: http://bugs.limesurvey.org/plugin.php?page=Source/view&id=30714 |
|
Fixed in Release 3.25.0+201117 |
|
LimeSurvey: 3.x-LTS 952f8943 2020-11-10 11:46 Committer: GitHub Details Diff |
Fixed issue 15615: Mandatory multiple choice questions are not assigned a red background if not being answered (#1577) * Fixed issue 15615: Mandatory multiple choice questions are not assigned a red background if not being answered Added new event handler for question-container, to evaluat status of its tips and then add/remove the error class * Fixed issue 15615: Mandatory multiple choice questions are not assigned a red background if not being answered Code review |
Affected Issues 15615 |
|
mod - assets/packages/template-core/template-core.js | Diff File |
Date Modified | Username | Field | Change |
---|---|---|---|
2019-11-23 16:54 | Mazi | New Issue | |
2019-11-23 16:54 | Mazi | File Added: limesurvey_survey_417165.lss | |
2019-11-23 16:54 | Mazi | Note Added: 54770 | |
2019-11-23 16:59 | Mazi | File Added: MC_mandatory.png | |
2019-11-23 16:59 | Mazi | File Added: array_madatory.png | |
2019-11-26 17:36 | cdorin | Assigned To | => cdorin |
2019-11-26 17:36 | cdorin | Status | new => assigned |
2020-07-10 00:31 | cdorin | Priority | none => low |
2020-07-10 00:31 | cdorin | Status | assigned => confirmed |
2020-07-10 00:31 | cdorin | Description Updated | |
2020-07-10 00:31 | cdorin | Steps to Reproduce Updated | |
2020-07-10 00:31 | cdorin | Additional Information Updated | |
2020-07-10 00:31 | cdorin | Zoho Sprints | => |Yes| |
2020-07-10 00:31 |
|
Zoho Sprints ID | => 14469000000166061 |
2020-07-10 00:31 | cdorin | Assigned To | cdorin => |
2020-07-10 00:31 | cdorin | Zoho Sprints | Yes => |Yes| |
2020-07-29 17:15 | cdorin | File Deleted: limesurvey_survey_417165.lss | |
2020-07-29 17:15 | cdorin | File Deleted: MC_mandatory.png | |
2020-07-29 17:15 | cdorin | File Deleted: array_madatory.png | |
2020-07-29 17:16 | cdorin | View Status | private => public |
2020-07-29 17:16 | cdorin | Zoho Sprints | Yes => |Yes| |
2020-07-29 17:16 | cdorin | Note Added: 59159 | |
2020-07-29 21:35 | gabrieljenik | Note Added: 59164 | |
2020-07-29 21:36 | gabrieljenik | Note Edited: 59164 | |
2020-07-30 09:13 | DenisChenu | Note Added: 59191 | |
2020-07-30 09:13 | DenisChenu | File Added: inputerror-butOK.png | |
2020-07-30 09:13 | DenisChenu | File Added: limesurvey_survey_912299.lss | |
2020-07-30 09:14 | DenisChenu | Note Added: 59192 | |
2020-07-30 09:14 | DenisChenu | File Added: Capture d’écran du 2020-07-30 09-06-25.png | |
2020-07-30 09:14 | DenisChenu | File Added: Capture d’écran du 2020-07-30 09-06-39.png | |
2020-09-03 21:48 | gabrieljenik | Note Added: 59705 | |
2020-10-20 01:51 | gabrieljenik | Note Added: 60280 | |
2020-10-20 10:23 | DenisChenu | Note Added: 60292 | |
2020-11-10 10:57 | gabrieljenik | Changeset attached | => LimeSurvey 3.x-LTS 952f8943 |
2020-11-10 10:57 | gabrieljenik | Note Added: 60601 | |
2020-11-10 10:57 | gabrieljenik | Assigned To | => gabrieljenik |
2020-11-10 10:57 | gabrieljenik | Resolution | open => fixed |
2020-11-16 09:31 | lime_release_bot | Note Added: 60648 | |
2020-11-16 09:31 | lime_release_bot | Status | confirmed => closed |