View Issue Details
| ID | Project | Category | View Status | Date Submitted | Last Update |
|---|---|---|---|---|---|
| 05681 | Bug reports | Survey editing | public | 2012-01-20 19:46 | 2012-01-24 21:45 |
| Reporter | tfj | Assigned To | TMSWhite | ||
| Priority | normal | Severity | minor | ||
| Status | closed | Resolution | no change required | ||
| Product Version | 1.92RC2 | ||||
| Summary | 05681: 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. | ||||
| Tags | No tags attached. | ||||
| Bug heat | 4 | ||||
| Complete LimeSurvey version number (& build) | 12006 | ||||
| I will donate to the project if issue is resolved | No | ||||
| Browser | Firefox 9.0.1 | ||||
| Database type & version | mySQL 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 Version | 5.3.0 | ||||
| Git branch / Pull Request URL | |||||
|
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. |
|
|
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. |
|
|
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 |
|
|
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. |
|
| 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 |