View Issue Details

IDProjectCategoryView StatusLast Update
14579Bug reports[All Projects] Print Viewpublic2019-04-12 08:30
ReporterRachengoldAssigned To 
PrioritynoneSeverityminor 
Status newResolutionopen 
Product Version3.15.x 
Target VersionFixed in Version 
Summary14579: Export to queXML doesn't show whole answer
Description

Question-Type: multiple short texts

Printout as quexml pdf shows answers with only 10 small boxes, rest of answer is hidden.
How can I adjust this to show whole answer ?

Target is to get a printout, which can be given away and does not have a technical layout such as export to .pdf / .docx etc. quexml.pdf was the best solution I found, so far.

TagsNo tags attached.
Complete LimeSurvey version number (& build)3.15.19
I will donate to the project if issue is resolvedNo
BrowserFirefox Quantum (65.0)
Database & DB-Version356
Server OS (if known)
Webserver software & version (if known)
PHP Version111

Relationships

related to 14041 new Short text answers in QueXML pdf from Print Answers mode are fixed length of 10 characters 

Activities

Rachengold

Rachengold

2019-02-28 09:48

reporter  

lime.jpg (22,052 bytes)
lime.jpg (22,052 bytes)
cdorin

cdorin

2019-03-07 16:57

manager   ~50822

Hello @Rachengold.

For this kind of issue, I recommend you to open a post on the forum since it is a printanswer configuration issue.

Could you please attach also an working example there and here?

DenisChenu

DenisChenu

2019-04-09 09:45

developer   ~51425

Last edited: 2019-04-09 09:49

View 2 revisions

@cdorin : no configuration here, it's a core issue

Reproduce : import included lsa, launch, next, next , print answer export as QueXML

Seems PDF file is too big ? https://framadrop.org/r/7HP5XpjD4c#PD92yJ9GhGQ9k8ZmSVL8XeISYJCgCTFG26BfYMfWaG8=



survey_archive_test-QueXML.lsa (4,132 bytes)
DenisChenu

DenisChenu

2019-04-09 09:47

developer   ~51426

@adamzammit : can you have a look ?

adamzammit

adamzammit

2019-04-12 08:28

developer   ~51444

Hi,

The default type for multiple short text in equivalent queXML is "text" with width 10.

If you would like to adjust this - please see this file:

https://github.com/LimeSurvey/LimeSurvey/blob/master/application/helpers/export_helper.php

application/helpers/export_helper.php

around line 1642:

                case "Q": //MULTIPLE SHORT TEXT
                    quexml_create_subQuestions($question, $qid, $sgq, $iResponseID, $fieldmap);
                    $response->appendChild(QueXMLCreateFree("text", quexml_get_lengthth($qid, "maximum_chars", "10"), ""));
                    $question->appendChild($response);

replace the line $response->appendChild... with:

                $response->appendChild(QueXMLCreateFree("longtext", quexml_get_lengthth($qid, "maximum_chars", "10"), ""));

to change the box type to "longtext"

or

                $response->appendChild(QueXMLCreateFree("text", quexml_get_lengthth($qid, "maximum_chars", "24"), ""));

to extend the number of characters available to view.

You may need to edit both values and test to see how it turns out for you.

Adam

Issue History

Date Modified Username Field Change
2019-02-28 09:48 Rachengold New Issue
2019-02-28 09:48 Rachengold File Added: lime.jpg
2019-03-07 16:57 cdorin Status new => feedback
2019-03-07 16:57 cdorin Note Added: 50822
2019-03-08 17:06 cdorin Relationship added related to 14041
2019-04-09 09:45 DenisChenu File Added: survey_archive_test-QueXML.lsa
2019-04-09 09:45 DenisChenu Note Added: 51425
2019-04-09 09:45 DenisChenu Status feedback => new
2019-04-09 09:47 DenisChenu Note Added: 51426
2019-04-09 09:49 DenisChenu Note Edited: 51425 View Revisions
2019-04-12 08:28 adamzammit Note Added: 51444