Check out the LimeSurvey source code on GitHub!

Include Answer Codes in Printable Version?

More
5 years 6 months ago #63793 by lhughes30
Hi, my users need to include the answer codes in the Printable Version, similar to the "Value Labels" from the SPSS Syntax export.

Any help or ideas greatly appreciated.

Please Log in to join the conversation.

More
5 years 6 months ago #63807 by greg_d
Hi,
I don't know if there is a simple way to do this without any source code modification.
As a quick and dirty solution you can change following line (line number 916-918 depending on your LS version) in printablesurvey.php
$question['ANSWER'] .= "\t".$wrapper['item-start']."\t\t".input_type_image('radio' , $dearow['answer'])."\n\t\t\t".$dearow['answer']."\n".$wrapper['item-end'];

to
$question['ANSWER'] .= "\t".$wrapper['item-start']."\t\t".input_type_image('radio' , $dearow['answer'])."\n\t\t\t".$dearow['code']." ".$dearow['answer']."\n".$wrapper['item-end'];

After that change answer codes will be displayed for List (radio) and List (dropdown) types in Printable Versions. For other question types similar changes will be required.

Please Log in to join the conversation.

Imprint                   Privacy policy         General Terms & Conditions         Revocation information and revocation form