View Issue Details

This issue affects 1 person(s).
 4
IDProjectCategoryView StatusLast Update
05681Bug reportsSurvey editingpublic2012-01-24 21:45
Reportertfj Assigned ToTMSWhite  
PrioritynormalSeverityminor 
Status closedResolutionno change required 
Product Version1.92RC2 
Summary05681: Survey Logic File flags question as needing to be corrected even though it works
Description

In several of my questions, I use a mask -- see "Text input masks - second method" in http://docs.limesurvey.org/Workarounds%3A+Manipulating+a+survey+at+runtime+using+Javascript&highlight=mask#Text_input_masks.

For some reason, the Survey Logic File flags these questions as having an error that needs to be corrected.

When I remove the mask script, however, the error flag goes away.

Steps To Reproduce

Please see above.

TagsNo tags attached.
Bug heat4
Complete LimeSurvey version number (& build)12006
I will donate to the project if issue is resolvedNo
BrowserFirefox 9.0.1
Database type & versionmySQL 5.1.37
Server OS (if known)Test PC with Windows XP Professional (32 bit)
Webserver software & version (if known)Apache 2.2.12
PHP Version5.3.0
Git branch / Pull Request URL

Users monitoring this issue

There are no users monitoring this issue.

Activities

TMSWhite

TMSWhite

2012-01-20 23:26

reporter   ~16893

Please upload a sample so that I can see and test this.

Also, have you ever found the need to have different input masks for each field of a multiple entry question, or would one mask that applies to the entire set of sub-questions suffice?

If the same mask for every sub-question, it may not be hard to just build this feature into LS so that it no longer requires a work-around.

TMSWhite

TMSWhite

2012-01-21 05:13

reporter   ~16894

Also, the most likely cause of this is that you have JavaScript with curly braces that don't have whitespace after them. Expression Manager assumes that anything enclosed in curly braces without any intervening whitespace is something it should parse. So, try adding a space after each curly brace in your JavaScript.

tfj

tfj

2012-01-23 15:37

reporter   ~16907

Thank you for the suggestion. Through a mySQL update query, I added a space after the curly braces in the questions table. That seemed to take care of the error flagging.

What you said about building the masking feature into LS sounds great! We have several surveys and I am always using masks (for telephone numbers, etc.). When I upgraded the last time, I had to completely change everything to match the new workaround.

I appreciate your responsiveness!

tfj

TMSWhite

TMSWhite

2012-01-23 16:45

reporter   ~16912

The problem was lack of spaces after curly braces within custom JavaScript. The user was able to correct the problem. This is not a bug.

Issue History

Date Modified Username Field Change
2012-01-20 19:46 tfj New Issue
2012-01-20 23:26 TMSWhite Note Added: 16893
2012-01-20 23:26 TMSWhite Assigned To => TMSWhite
2012-01-20 23:26 TMSWhite Status new => feedback
2012-01-21 05:13 TMSWhite Note Added: 16894
2012-01-23 15:37 tfj Note Added: 16907
2012-01-23 15:37 tfj Status feedback => assigned
2012-01-23 16:45 TMSWhite Note Added: 16912
2012-01-23 16:45 TMSWhite Status assigned => resolved
2012-01-23 16:45 TMSWhite Resolution open => fixed
2012-01-24 21:45 c_schmitz Status resolved => closed
2012-01-24 21:45 c_schmitz Resolution fixed => no change required
2019-11-01 17:25 c_schmitz Category Survey design => Survey editing