Dependency Graph

Dependency Graph
related to related to child of child of duplicate of duplicate of

View Issue Details

This bug affects 1 person(s).
 20
IDProjectCategoryView StatusLast Update
14579Bug reportsPrint Viewpublic2021-09-08 10:08
ReporterRachengold Assigned Toc_schmitz  
PrioritynoneSeverityminor 
Status closedResolutionno change required 
Product Version3.15.x 
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.
Attached Files
lime.jpg (22,052 bytes)   
lime.jpg (22,052 bytes)   
Bug heat20
Complete LimeSurvey version number (& build)3.15.19
I will donate to the project if issue is resolvedNo
BrowserFirefox Quantum (65.0)
Database type & version356
Server OS (if known)
Webserver software & version (if known)
PHP Version111

Relationships

has duplicate 14041 closedc_schmitz Short text answers in QueXML pdf from Print Answers mode are fixed length of 10 characters 

Activities

cdorin

cdorin

2019-03-07 16:57

reporter   ~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

@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=

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

c_schmitz

c_schmitz

2021-09-08 10:08

administrator   ~66394

So you can just set the question setting Maximum characters in the Input tab when you edit the question and it should be fine.
Closing this because it is not an bug.

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
2019-04-12 08:28 adamzammit Note Added: 51444
2019-04-12 08:30 adamzammit Issue Monitored: adamzammit
2019-11-26 17:47 cdorin Assigned To => cdorin
2019-11-26 17:47 cdorin Status new => assigned
2021-02-08 19:09 cdorin Assigned To cdorin =>
2021-02-08 19:09 cdorin Status assigned => acknowledged
2021-09-08 10:08 c_schmitz Note Added: 66394
2021-09-08 10:08 c_schmitz Bug heat 8 => 10
2021-09-08 10:08 c_schmitz Assigned To => c_schmitz
2021-09-08 10:08 c_schmitz Status acknowledged => closed
2021-09-08 10:08 c_schmitz Resolution open => no change required
2021-09-08 10:08 c_schmitz Relationship replaced has duplicate 14041
2021-09-08 10:08 c_schmitz Bug heat 10 => 20