Welcome to the LimeSurvey Community Forum

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

Tailoring Examples about Multiple choice

  • RitaShen
  • RitaShen's Avatar Topic Author
  • Offline
  • Premium Member
  • Premium Member
More
5 years 5 months ago #175260 by RitaShen
hi there,


I need to show the information at the bottom of the questionnaire.
but the multiple choice will show all of the sub question it the Tailoring Examples



how could I do that the Tailoring Examples will only show the answer they choose?

thanks
The topic has been locked.
  • holch
  • holch's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
5 years 5 months ago #175262 by holch
Replied by holch on topic Tailoring Examples about Multiple choice
Sorry, it is not clear what you are trying to do.

Please be more specific, because the screenshots you are showing don't tell me much.

So the first part is a multiple choice question, correct?

What is that second part?
And what is shown there?
What did you do there?

I answer at the LimeSurvey forum in my spare time, I'm not a LimeSurvey GmbH employee.
No support via private message.

The topic has been locked.
  • RitaShen
  • RitaShen's Avatar Topic Author
  • Offline
  • Premium Member
  • Premium Member
More
5 years 5 months ago #175264 by RitaShen
Replied by RitaShen on topic Tailoring Examples about Multiple choice
I want to show the answers at the bottom of the questionnaire.
I use this code in the Tailoring Examples about Multiple choice
Code:
if(is_empty(Q2_1.NAOK == "Y"), 'Please enter some information about yourself'implode(' ', '本次研討會對於住宿的需求您是', Q2_1 == "Y", '入住'))
if(is_empty(Q2_2.NAOK == "Y"), 'Please enter some information about yourself'implode(' ', '本次研討會對於住宿的需求您是', Q2_2 == "Y", '入住')) 
if(is_empty(Q2_3.NAOK == "Y"), 'Please enter some information about yourself'implode(' ', '本次研討會對於住宿的需求您是', Q2_3 == "Y", '入住')) 
if(is_empty(Q2_4.NAOK == "Y"), 'Please enter some information about yourself'implode(' ', '本次研討會對於住宿的需求您是', Q2_4 == "Y", '入住'))

but they will show all of the sub question it the Tailoring Examples
like this
I only choose the Q2_2 and Q2_4, but the other answers I did not choose will also appear.

how could I do that the the answers at the bottom of the questionnaire. will only show the answer they choose?
example:
if I choose the Q2_1 and Q2_3, it will only show the answer I choose(Q2_1 and Q2_3).
it won't appear all of the subquestion in the text display
The topic has been locked.
  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
5 years 5 months ago #175267 by DenisChenu
Replied by DenisChenu on topic Tailoring Examples about Multiple choice
Hi
1st : is_empty(Q2_3.NAOK == "Y") : this is broken : you need to test is_empty(Q2_3.NAOK) or Q2_3.NAOK
2nd : the english string didn't have a , after
3rd: the implode part are reaaly strange : you implode string (this is OK) and a boolean

I don't understand the english string then :

if I choose the Q2_1 and Q2_3, it will only show the answer I choose(Q2_1 and Q2_3).


Code:
{if(is_empty(Q2_1.NAOK), "", Q2_1.question)}
{if(is_empty(Q2_2.NAOK), "", Q2_2.question)}
{if(is_empty(Q2_3.NAOK), "", Q2_3.question)}
{if(is_empty(Q2_4.NAOK), "", Q2_4.question)}

if condition is like that : if(condition,"What to show if condition is true","What to show if condition is false")

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: RitaShen
The topic has been locked.
  • RitaShen
  • RitaShen's Avatar Topic Author
  • Offline
  • Premium Member
  • Premium Member
More
5 years 5 months ago #175269 by RitaShen
Replied by RitaShen on topic Tailoring Examples about Multiple choice
thanks Denis
The topic has been locked.

Lime-years ahead

Online-surveys for every purse and purpose