Welcome to the LimeSurvey Community Forum

Ask the community, share ideas, and connect with other LimeSurvey users!

How do I show the output of multiple choice questions with comments?

  • torilee93
  • torilee93's Avatar Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
3 years 6 months ago #206615 by torilee93
Hello,

I am trying to create a survey question type "Multiple Choice with Comments" and "List with Comment".
I created a summary to show the results in a pdf but it seems to only show what is checked off on the multiple choice question and the list question. It doesn't actually show the comments written. How can I show the comments as well?

This is the code I have for the summary section
Code:
Which animal are you making an appointment for?
{if(is_empty(animal1_SQ001.NAOK),"---",animal1_SQ001.shown)}
{if(is_empty(animal1_SQ002.NAOK),"---",animal1_SQ002.shown)}
{if(is_empty(animal1_SQ003.NAOK),"---",animal1_SQ003.shown)}
{if(is_empty(animal1_SQ004.NAOK),"---",animal1_SQ004.shown)}
{if(is_empty(animal1_SQ005.NAOK),"---",animal1_SQ005.shown)}
 
 
Is this an emergency? {if(is_empty(status.shown),"---",status.shown)}


I have attached a lss here to help explain what I am trying to ask.
Thank you in advance for your help!

- Tori
The topic has been locked.
  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
3 years 6 months ago #206645 by DenisChenu
Can you try animal1_SQ005_comment ?
manual.limesurvey.org/Expression_Manager#Qcode_Variable_Naming

«For comment and other, question code are QuestionCode_comment and QuestionCode_other » :)

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand , plugin development .
I don't answer to private message.
The topic has been locked.
  • torilee93
  • torilee93's Avatar Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
3 years 6 months ago #206738 by torilee93
Hi @DenisChenu

Thank you for your suggestion.
I tried putting {animal1_SQ005_comment} and also {animal1_SQ005_comment.shown} but neither of them are giving me an output. Am I missing something basic?

- Tori
The topic has been locked.
  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
3 years 6 months ago #206743 by DenisChenu
I check : {animal1_SQ005comment.NAOK}

It show on manual

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand , plugin development .
I don't answer to private message.
The following user(s) said Thank You: torilee93
The topic has been locked.
  • torilee93
  • torilee93's Avatar Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
3 years 6 months ago #206891 by torilee93
@DenisChenu
Thank you so much! It is working now.

- Tori
The topic has been locked.

Lime-years ahead

Online-surveys for every purse and purpose