Welcome to the LimeSurvey Community Forum

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

multiple answer with commentary

  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
8 years 1 month ago #132541 by tpartner
Replied by tpartner on topic multiple answer with commentary
Unfortunately, without access to the template you will not be able to modify the appearance.

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The topic has been locked.
  • ledoux
  • ledoux's Avatar Topic Author
  • Offline
  • Premium Member
  • Premium Member
More
8 years 1 month ago #132542 by ledoux
Replied by ledoux on topic multiple answer with commentary
Dear TPartner,
Your option is working ! but not really in the right way. Actually, I would like to hide the page only if there are 2 comments, and display it if there is 0 or 1 comment (or only boxes checked).

Is this relevance equation right?
CroyancesABpositives_ABPos1comment = '' OR CroyancesABpositives_ABPos2comment = '' OR CroyancesABpositives_ABPos3comment = ''

New user of LS but with the will to contribute to this great community !
The topic has been locked.
  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
8 years 1 month ago #132545 by tpartner
Replied by tpartner on topic multiple answer with commentary
Try this, it should only show the page if there are less than two comments.

Code:
count(CroyancesABpositives_ABPos1comment, CroyancesABpositives_ABPos2comment, CroyancesABpositives_ABPos3comment) LT 2

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The topic has been locked.
  • ledoux
  • ledoux's Avatar Topic Author
  • Offline
  • Premium Member
  • Premium Member
More
8 years 1 month ago #132546 by ledoux
Replied by ledoux on topic multiple answer with commentary
It is working !! Thank you :!!

My last question on that post: actually, the condition has to be applied on 2 questions which are on the same page (let's say A and B),
Meaning, if there is less then 2 comments for one of the questions, then the page should be displayed.
It should be : If ((0 or 1 comment on var A) OR (0 or 1 comment on var B)) then show page

I tried the following equation: (your expression for var A) OR (your expression for var B)
But it is not working, the page is not shown only if there is at least 2 comments on both variable. And it is shown for other conditions, even if there is for ex 2 comments on var A, and O or 1 comment on var B, what is wrong !
My last question;... :)

New user of LS but with the will to contribute to this great community !
The topic has been locked.
  • ledoux
  • ledoux's Avatar Topic Author
  • Offline
  • Premium Member
  • Premium Member
More
8 years 1 month ago #132557 by ledoux
Replied by ledoux on topic multiple answer with commentary
It is working !! Thank you :!!

My last question on that post: actually, the condition has to be applied on 2 questions which are on the same page (let's say A and B ),
Meaning, if there is less then 2 comments for one of the questions, then the page should be displayed.
It should be : If ((0 or 1 comment on var A) OR (0 or 1 comment on var B )) then show page

I tried the following equation: (your expression for var A) OR (your expression for var B )
But it is not working, the page is not shown only if there is at least 2 comments on both variable. And it is shown for other conditions, even if there is for ex 2 comments on var A, and O or 1 comment on var B, what is wrong !
This is my last question;... :)

New user of LS but with the will to contribute to this great community !
The topic has been locked.
  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
8 years 1 month ago - 8 years 1 month ago #132572 by tpartner
Replied by tpartner on topic multiple answer with commentary
Asking the question twice will not speed up answers. We are all volunteers with real jobs and will answer as time allows.

I have no idea what the question or sub-question codes are but if I follow your logic correctly, this should work:

Code:
count(CroyancesABpositives_ABPos1comment, CroyancesABpositives_ABPos2comment, CroyancesABpositives_ABPos3comment) LT 2 OR count(Q2Code_ABPos1comment, CQ2Code_ABPos2comment, Q2Code_ABPos3comment) LT 2

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
Last edit: 8 years 1 month ago by tpartner.
The topic has been locked.
  • ledoux
  • ledoux's Avatar Topic Author
  • Offline
  • Premium Member
  • Premium Member
More
8 years 1 month ago #132577 by ledoux
Replied by ledoux on topic multiple answer with commentary
Dear Tpartner
I tried to delete the 1st post (because the "B" letter created a smiley, so I wanted to write it again). It was said "deleted" so I didn't know if it was still "visible" on the forum. So I put it again. Sorry for that. It was not to push an answer...

I will try your solution, thank you a lot !! You guys are really efficient, reactive and pleasant ! Thanks !

New user of LS but with the will to contribute to this great community !
The topic has been locked.
  • ledoux
  • ledoux's Avatar Topic Author
  • Offline
  • Premium Member
  • Premium Member
More
8 years 1 month ago #132619 by ledoux
Replied by ledoux on topic multiple answer with commentary
Tpartner
Thank you !
Actually it is not working. With this equation, the next page is hidden only if there are at least 2 answers for BOTH variable. I would like the page to be hidden if there are 2 comments for question 1, and "0 or 1" comment for question 2. Do you have an idea ? thank you !!

New user of LS but with the will to contribute to this great community !
The topic has been locked.
  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
8 years 1 month ago #132635 by tpartner
Replied by tpartner on topic multiple answer with commentary
I'm sorry, I cannot follow your logic any more - it keeps changing.

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The topic has been locked.
  • ledoux
  • ledoux's Avatar Topic Author
  • Offline
  • Premium Member
  • Premium Member
More
8 years 1 month ago #132658 by ledoux
Replied by ledoux on topic multiple answer with commentary
Tpartner, I4m sorry, I think I can not express myself clearly. My idea remained the same. I only changed the minimal number of answers.

If there is at least 2 answers in one of the 2 questions, then the page is hidden (I have enough info). If there is only 0 or 1 answer to both questions, then show the page.

Is that clear ? sorry again, it was late yesterday (3 am) and I wan not clear.

New user of LS but with the will to contribute to this great community !
The topic has been locked.
  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
8 years 1 month ago #132678 by tpartner
Replied by tpartner on topic multiple answer with commentary
Okay, then I think it should be:

Code:
count(CroyancesABpositives_ABPos1comment, CroyancesABpositives_ABPos2comment, CroyancesABpositives_ABPos3comment) LT 2 AND count(Q2Code_ABPos1comment, CQ2Code_ABPos2comment, Q2Code_ABPos3comment) LT 2

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The following user(s) said Thank You: ledoux
The topic has been locked.
  • ledoux
  • ledoux's Avatar Topic Author
  • Offline
  • Premium Member
  • Premium Member
More
8 years 1 month ago #132867 by ledoux
Replied by ledoux on topic multiple answer with commentary
Yes it is working fine. Thank you a lot !!

New user of LS but with the will to contribute to this great community !
The topic has been locked.

Lime-years ahead

Online-surveys for every purse and purpose