Welcome, Guest
Username: Password: Remember me

TOPIC: Include Answer Codes in Printable Version?

Include Answer Codes in Printable Version? 3 years 4 months ago #63793

  • lhughes30
  • lhughes30's Avatar
  • OFFLINE
  • Junior Lime
  • Posts: 20
  • Thank you received: 1
  • Karma: 1
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.
The administrator has disabled public write access.

Re: Include Answer Codes in Printable Version? 3 years 4 months ago #63807

  • greg_d
  • greg_d's Avatar
  • OFFLINE
  • Senior Lime
  • Posts: 47
  • Thank you received: 7
  • Karma: 4
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.
The administrator has disabled public write access.
Moderators: ITEd
Time to create page: 0.201 seconds
Donation Image