View Issue Details

This bug affects 1 person(s).
 4
IDProjectCategoryView StatusLast Update
17068Bug reportsSurvey takingpublic2021-02-25 11:46
Reportertassoman Assigned Topstelling  
PrioritynoneSeverityminor 
Status assignedResolutionopen 
Product Version3.24.6 
Summary17068: question single radio mandatory other fails validation
Description

When you choose a radio list single question with mandatory option enabled and others option enabled too, you pass the validation also when "other" answer isn't typed inside the box.

I expected LS blocked the submission when survey admin chose radio list single question then partecipant submitted the survey without writing anything inside the other radio option.

Steps To Reproduce
  1. create a survey
  2. add a single choice radio question
  3. set mandatory
  4. set others option
  5. test the survey
  6. click "other" radio button
  7. ignore writing inside other
  8. "other" text field doesn't light up as an error
  9. you have a validation note "you must fill the others field"
  10. submit
Additional Information

The "sibiling" situation works and validates correctly, when you choose checkbox multiple answer list with mandatory and others options enabled, the validation blocks the partecipant if they don't type anything inside the "other" option.

Tagsother, questions, text field, validation
Bug heat4
Complete LimeSurvey version number (& build)3.24.6+201109
I will donate to the project if issue is resolvedNo
Browser
Database type & versionmysql
Server OS (if known)alpine docker
Webserver software & version (if known)apache 2.4
PHP Version7.3.x

Users monitoring this issue

There are no users monitoring this issue.

Activities

tassoman

tassoman

2021-02-09 10:37

reporter   ~62058

the validation fails also after chosing the widget kind of "dropdown" and selecting "other:" option.

tassoman

tassoman

2021-02-09 10:49

reporter   ~62059

ok. I got it. There's also a flag inside the "Logic" pane who does set mandatory the other text field.
But the problem with the UI still exists because validation message "you must write something inside other text-field" flashes red when other-text-field isn't mandatory by logic.

DenisChenu

DenisChenu

2021-02-09 12:27

developer   ~62068

Yes : right.

Can you provide a sample lss ? and a screenshot maybe ?

tassoman

tassoman

2021-02-09 13:33

reporter   ~62076

Well, never mind. -_-'
I can't reproduce it. Maybe we had some other misconfiguration inside that survey.
Issue can be cancelled. Sorry for misunderstanding.

DenisChenu

DenisChenu

2021-02-09 13:34

developer   ~62077

The "sibiling" situation works and validates correctly, when you choose checkbox multiple answer list with mandatory and others options enabled, the validation blocks the partecipant if they don't type anything inside the "other" option.

You don't have red warning about other if other is not checked too ?

Not a major issue, but sill an issue ;)

tassoman

tassoman

2021-02-09 15:12

reporter   ~62079

648 - is the single radio question, with mandatory and others switched on
649 - is the multiple checkbox with mandatory and others switched on

When you tick "other" in single-radio, nothing happens
When you tick "other" in multiple, it focus the text-field

Single Radio Question has one more setting inside "Logic" Pane, who lets you force text-input digits
Multiple Checkbox Question does it by default. (you cannot simply refer to "other, you must enter something. for example the word other")

When you go next page, validation of single-radio asks to write some text (logic pane text-field is N, i expected you chose just other). Same for multiple checkbox.

We have different situation to handle in both questions:

A) other (with no text)
B) other (with mandatory text)

Issue History

Date Modified Username Field Change
2021-02-09 10:28 tassoman New Issue
2021-02-09 10:30 tassoman Tag Attached: questions
2021-02-09 10:30 tassoman Tag Attached: other
2021-02-09 10:30 tassoman Tag Attached: text field
2021-02-09 10:31 tassoman Tag Attached: validation
2021-02-09 10:37 tassoman Note Added: 62058
2021-02-09 10:49 tassoman Note Added: 62059
2021-02-09 12:27 DenisChenu Note Added: 62068
2021-02-09 13:33 tassoman Note Added: 62076
2021-02-09 13:34 DenisChenu Note Added: 62077
2021-02-09 15:12 tassoman Note Added: 62079
2021-02-09 15:12 tassoman File Added: limesurvey_question_649.lsq
2021-02-09 15:12 tassoman File Added: limesurvey_question_648.lsq
2021-02-09 15:12 tassoman File Added: Screenshot_2021-02-09 Questo è anonimo(1).png
2021-02-09 15:12 tassoman File Added: Screenshot_2021-02-09 Questo è anonimo.png
2021-02-25 11:46 pstelling Assigned To => pstelling
2021-02-25 11:46 pstelling Status new => assigned