View Issue Details
| ID | Project | Category | View Status | Date Submitted | Last Update |
|---|---|---|---|---|---|
| 05974 | Bug reports | Data Entry (non public) | public | 2012-04-02 12:35 | 2012-04-12 00:43 |
| Reporter | DenisChenu | Assigned To | TMSWhite | ||
| Priority | low | Severity | minor | ||
| Status | closed | Resolution | no change required | ||
| Product Version | 1.92+ | ||||
| Summary | 05974: Sub-question validation equation in short/long text question | ||||
| Description | In short text question, we have Sub-question validation equation. But i think we can't have Sub-question validation equation in short text question. | ||||
| Steps To Reproduce | Add a short text question, see the advanced parameter. | ||||
| Additional Information | Patch is very easy ;) $qattributes["em_validation_sq"]=array( | ||||
| Tags | No tags attached. | ||||
| Bug heat | 4 | ||||
| Complete LimeSurvey version number (& build) | 120402 | ||||
| I will donate to the project if issue is resolved | No | ||||
| Browser | not relevant | ||||
| Database type & version | not relevant | ||||
| Server OS (if known) | not relevant | ||||
| Webserver software & version (if known) | not relevant | ||||
| PHP Version | not relevant | ||||
| Git branch / Pull Request URL | |||||
|
This is really more of a naming issue. em_validation_sq means that if there is an error in the text entry field, the background can be color coded pink (as will the em_validation_sq_tip, if non-empty) em_validation_q means that if there is an error in the text entry field, the em_validation_q_tip will be color coded pink (if non-empty), but the background color for the text entry field will NOT be color coded pink. That's why I left both options for Short, Long and Huge texts, plus numeric input - it gave users a little more flexibility in how the display was handled. Perhaps we need better names for those attributes (or their descriptors)? Suggestions are welcome. |
|
|
If i understand right: And for non-mandatory :what the way ? Or em_validation_q AND em_validation_sq set the answer to be mandatory (except if you make a test if empty in regexep) |
|
|
Not quite. Both em_validation_q and em_validation_sq are optional - either will accept an empty response unless either (a) the question is mandatory, or (b) the validation criteria itself forces a response (like strlen(this) > 0) Also, em_validation_sq applies the same validation rules to every input:text or textarea (sub-question) within the question (even if there is only one such input field). em_validation_q does not replicate the validation equation for every sub-question. See this link for some examples: http://docs.limesurvey.org/Expression+Manager+Sample+Surveys#Validation_Equations |
|
|
Not a bug - as described, this is a feature giving users two ways to visualize data entry errors for single fields. |
|
|
Proposition for "source file" language |
|
| Date Modified | Username | Field | Change |
|---|---|---|---|
| 2012-04-02 12:35 | DenisChenu | New Issue | |
| 2012-04-02 12:35 | DenisChenu | Status | new => assigned |
| 2012-04-02 12:35 | DenisChenu | Assigned To | => TMSWhite |
| 2012-04-02 15:40 | TMSWhite | Note Added: 18167 | |
| 2012-04-02 15:48 | DenisChenu | Note Added: 18168 | |
| 2012-04-02 15:56 | TMSWhite | Note Added: 18169 | |
| 2012-04-04 20:23 | TMSWhite | Note Added: 18201 | |
| 2012-04-04 20:23 | TMSWhite | Status | assigned => resolved |
| 2012-04-04 20:23 | TMSWhite | Resolution | open => no change required |
| 2012-04-04 20:33 | DenisChenu | Note Added: 18202 | |
| 2012-04-12 00:43 | c_schmitz | Status | resolved => closed |