View Issue Details
| ID | Project | Category | View Status | Date Submitted | Last Update |
|---|---|---|---|---|---|
| 19259 | Feature requests | RemoteControl | public | 2023-11-21 10:11 | 2024-03-13 00:14 |
| Reporter | iceclimber81 | Assigned To | |||
| Priority | none | Severity | feature | ||
| Status | new | Resolution | open | ||
| Summary | 19259: Let user define custom codetextseparator in data export via API | ||||
| Description | The issue has been discussed in the forum: https://forums.limesurvey.org/forum/can-i-do-this-with-limesurvey/142733-get-question-code-and-question-text-in-export-via-remote-control-api#251313 Using a PHP script to export responses via the API https://api.limesurvey.org/classes/remotecontrol_handle.html#method_export_responses , it is possible to get the question code AND question text in the column header by setting the $sHeadingType parameter to 'codetext', which is not documented in the API documentation. [code] $response = $lsJSONRPCClient->export_responses($sessionKey, $surveyID, 'csv', 'en', 'complete', 'codetext', 'long'); [/code] However, question code and question text get concatenated without a separator (unlike in the export via the web interface). This makes the heading difficult to read, for example "S1Q5What is your name?". Specifying a codetextseparator in $aAdditionalOptions does not have any effect. Please allow users to define a custom codetextseparator in $aAdditionalOptions. | ||||
| Tags | No tags attached. | ||||
| Bug heat | 8 | ||||
| Story point estimate | 0 | ||||
| Users affected % | 0 | ||||
| Date Modified | Username | Field | Change |
|---|---|---|---|
| 2023-11-21 10:11 | iceclimber81 | New Issue | |
| 2024-03-13 00:14 | duvemyster | Issue Monitored: duvemyster | |
| 2024-03-13 00:14 | duvemyster | Bug heat | 0 => 2 |
| 2025-07-31 14:21 | guest | Bug heat | 2 => 8 |