Welcome to the LimeSurvey Community Forum

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

How to hide the answer choice as per condition

  • tpartner
  • tpartner's Avatar Topic Author
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
3 years 3 months ago #225505 by tpartner

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.

Please Log in to join the conversation.

  • tpartner
  • tpartner's Avatar Topic Author
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
3 years 3 months ago #225522 by tpartner
Replied by tpartner on topic How to hide the answer choice as per condition
Can you attach a small sample survey (.lss file) containing only the relevant questions?

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.

Please Log in to join the conversation.

  • Joffm
  • Joffm's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
3 years 3 months ago #225524 by Joffm
Hi, 
Could you please structure your text a bit more?
I do not understand the first part.

And the Q04 - Q05 - Q06?
Use "array exclusion filter".
Be aware that the codes of the three questions have to be identical.
Now you have "AO01",... in Q04, but "SQ002", ... in the others. Better you use "1", "2",... for all

Read the manmual about question types and the several settings
[url] www.limesurvey.org/manual/Question_type_...ay_filter_exclude.29 [/url]

And you use a question of type "equation" to combine all mentions (top of mind, spontaneously, aided) into Q07.

Joffm

Volunteers are not paid.
Not because they are worthless, but because they are priceless
The following user(s) said Thank You: DenisChenu

Please Log in to join the conversation.

  • Joffm
  • Joffm's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
3 years 3 months ago - 3 years 3 months ago #225526 by Joffm
Hi, that's  much better.
1. Why did you start all codes with SQ002? That's confusing when you write "coded 1 or 2"
2. If it is a single punch question use a matching question type, e.g. list(radio)

I changed that, included the filtering and an example how to calculate the total awareness.
You have to adapt for the rest of brands.

To terminate the survey you have to set a quota with limit 0.
[url] www.limesurvey.org/manual/Survey_quotas/en [/url] 

 

File Attachment:

File Name: limesurvey...3575.lss
File Size:99 KB


Joffm

And, please, read the manual.

Volunteers are not paid.
Not because they are worthless, but because they are priceless
Last edit: 3 years 3 months ago by Joffm.

Please Log in to join the conversation.

  • Joffm
  • Joffm's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
3 years 3 months ago - 3 years 3 months ago #225529 by Joffm
Of course it is.
You see the relevance equation in Q03.
And if it is not correct, I told you that your coding is a bit confusing.
You see how it works. So you can easily adapt.

Joffm

Volunteers are not paid.
Not because they are worthless, but because they are priceless
Last edit: 3 years 3 months ago by Joffm.

Please Log in to join the conversation.

  • Joffm
  • Joffm's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
3 years 3 months ago #225531 by Joffm
Have a look at the subquestion relevance equations of Q03, Q05, Q06.
And read the manual about ExpressionScript.

To explain  a relevance equation.
This is a logical equation that is either TRUE or FALSE.
If it is TRUE the group/question/subquestion is displayed. if FALSE not.

And you may study the sample surveys which you find either in the demo installation
demo.limesurvey.org/admin

or here
[url] www.limesurvey.org/manual/ExpressionScript_sample_surveys/en [/url]

Joffm

Volunteers are not paid.
Not because they are worthless, but because they are priceless

Please Log in to join the conversation.

Moderators: tpartnerholch

Lime-years ahead

Online-surveys for every purse and purpose