View Issue Details

This bug affects 1 person(s).
 6
IDProjectCategoryView StatusLast Update
12172Bug reportsExpression Managerpublic2017-03-08 08:29
Reporterwingman123 Assigned Toc_schmitz  
PrioritynoneSeveritypartial_block 
Status closedResolutionduplicate 
Product Version2.63.x 
Fixed in Version2.64.x 
Summary12172: RegEx validation for List with Comments comment box not working
Description

In the latest build of LS as of this bug, using a RegEx equation to validate the "comment" field of a List with Comments question is not responsive. An example is here: https://demo.limesurvey.org/index.php?r=admin/questions/sa/view/surveyid/281598/gid/52/qid/189 (Note: this functionality was working on a previous version of limesurvey - build from 5/12/2016)

Steps To Reproduce

Create a List with Comments question in a survey within the latest stable build of LS (ex name: q1) (Or use attached question and import)
Keep it basic with one subquestion
Add in the following validation equation:
<code> (is_empty(q1_comment) or (regexMatch('/^[A-Za-z0-9- ]{0,10}$/',q1_comment))) </code>
and tip:
<code>{if((is_empty(q1_comment) or (regexMatch('/^[A-Za-z0-9- ]{0,10}$/',q1_comment))), '', 'Character limit is 10, spaces are included')}</code>

Save and Preview the question
Enter data
Observe that no validation message is triggered when the condition is not met (English letters and numbers, no special characters and a character count of 10)

TagsNo tags attached.
Attached Files
Bug heat6
Complete LimeSurvey version number (& build)limesurvey2.63.1+170305
I will donate to the project if issue is resolvedNo
BrowserChrome, Firefox
Database type & versionPostgres 9.4
Server OS (if known)Mac
Webserver software & version (if known)Apache
PHP Version5.6

Relationships

duplicate of 12159 closedc_schmitz Regex Validation shows incorrect behaviour 

Users monitoring this issue

There are no users monitoring this issue.

Activities

DenisChenu

DenisChenu

2017-03-05 11:16

developer   ~43160

Can you upload directly a lss file please ?
demo is reset each night, and with a lsq it's really more time consuming

wingman123

wingman123

2017-03-05 19:03

reporter   ~43161

sure thing, uploaded here

DenisChenu

DenisChenu

2017-03-06 19:16

developer   ~43166

Seems OK for me : see the screenshot

wingman123

wingman123

2017-03-06 21:48

reporter   ~43172

hmm, im doing the same thing - using the version of the demo and not seeing the validation message. I'm not sure what the difference is here i used the same .lss i exported

validation_example.png (122,547 bytes)
c_schmitz

c_schmitz

2017-03-07 11:29

administrator   ~43183

We just released a new version (demo was updated, too) . Do you still have the problem?

wingman123

wingman123

2017-03-07 16:36

reporter   ~43191

No I do not on the new demo version! Thank you for the quick feedback and responses. I'm assuming it was this commit that had the fix:
Fixed issue 12159: On-page Regex validation shows incorrect behaviour? Either way it looks good now. Thanks Denis, Carsten

c_schmitz

c_schmitz

2017-03-08 08:29

administrator   ~43209

Yes, that was probably it. Glad that it works for you now.

Issue History

Date Modified Username Field Change
2017-03-03 21:41 wingman123 New Issue
2017-03-03 21:41 wingman123 File Added: limesurvey_question_189.lsq
2017-03-05 11:16 DenisChenu Note Added: 43160
2017-03-05 19:03 wingman123 File Added: limesurvey_survey_868488.lss
2017-03-05 19:03 wingman123 Note Added: 43161
2017-03-06 19:16 DenisChenu File Added: Capture du 2017-03-06 19-07-37.png
2017-03-06 19:16 DenisChenu Assigned To => DenisChenu
2017-03-06 19:16 DenisChenu Status new => feedback
2017-03-06 19:16 DenisChenu Note Added: 43166
2017-03-06 21:48 wingman123 File Added: validation_example.png
2017-03-06 21:48 wingman123 Note Added: 43172
2017-03-06 21:48 wingman123 Status feedback => assigned
2017-03-07 11:29 c_schmitz Note Added: 43183
2017-03-07 11:29 c_schmitz Status assigned => feedback
2017-03-07 16:36 wingman123 Note Added: 43191
2017-03-07 16:36 wingman123 Status feedback => assigned
2017-03-08 08:28 c_schmitz Relationship added duplicate of 12159
2017-03-08 08:29 c_schmitz Assigned To DenisChenu => c_schmitz
2017-03-08 08:29 c_schmitz Status assigned => closed
2017-03-08 08:29 c_schmitz Resolution open => duplicate
2017-03-08 08:29 c_schmitz Fixed in Version => 2.64.x
2017-03-08 08:29 c_schmitz Note Added: 43209