View Issue Details
| ID | Project | Category | View Status | Date Submitted | Last Update |
|---|---|---|---|---|---|
| 14028 | Bug reports | Expression Manager | public | 2018-09-04 14:55 | 2018-09-06 09:49 |
| Reporter | cdorin | Assigned To | |||
| Priority | none | Severity | partial_block | ||
| Status | closed | Resolution | no change required | ||
| Product Version | 3.13.x | ||||
| Summary | 14028: "If" and "qcode_other" not working properly | ||||
| Description | if statement not working properly if qcode_other is used in the condition. For example, I got two questions Q00 and Q01 in my example and I want to pipe the "other" answer, if selected, to Q1. The code would look like this: if(Q00_other == 'Y', Q00_other.shown, Q00.shown). However, Q01 does not display Q00_other.shown... only "-oth-". However, if I use if(Q00 == 'Y', Q00.shown, Q00_other.shown), everything seems to be working fine. P.s. the comment function seems to be working fine. | ||||
| Tags | No tags attached. | ||||
| Attached Files | |||||
| Bug heat | 4 | ||||
| Complete LimeSurvey version number (& build) | irrelevant | ||||
| I will donate to the project if issue is resolved | No | ||||
| Browser | |||||
| Database type & version | irrelevant | ||||
| Server OS (if known) | irrelevant | ||||
| Webserver software & version (if known) | irrelevant | ||||
| PHP Version | irrelevant | ||||
|
No … Q00_other mean : Q00_other.code, then it's value entered by user … (same than shown for text value) |
|
|
Ok, so this is actually working with: {if(Q00.shown=='-oth-', Q00_other.shown, Q00.shown)} Also, thanks @DenisChenu for your remark! I will close the bug |
|
|
It is working - did a mistake Q00.shown=='oth' has to be used |
|
| Date Modified | Username | Field | Change |
|---|---|---|---|
| 2018-09-04 14:55 | cdorin | New Issue | |
| 2018-09-04 14:55 | cdorin | File Added: limesurvey_survey_861963 (1).lss | |
| 2018-09-04 17:11 | cdorin | Severity | minor => partial_block |
| 2018-09-05 11:19 | DenisChenu | Note Added: 48972 | |
| 2018-09-06 09:48 | cdorin | Note Added: 48979 | |
| 2018-09-06 09:49 | cdorin | Status | new => closed |
| 2018-09-06 09:49 | cdorin | Resolution | open => no change required |
| 2018-09-06 09:49 | cdorin | Note Added: 48980 |