Welcome to the LimeSurvey Community Forum

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

Hide a specific subquestion in an array based on a previous answer on a array

  • walidhamra
  • walidhamra's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
8 years 9 months ago - 8 years 9 months ago #121016 by walidhamra
How can I hide a subquestion in an array if on a previous answer on a array = 99.

please helping me...
you find the file of the survey.....

please...please

Attachment URating.jpg not found




Attachment Q4AA1-2.jpg not found




Attachment limesurvey_survey_532925.lss not found

Attachments:
Last edit: 8 years 9 months ago by walidhamra.
The topic has been locked.
  • tpartner
  • tpartner's Avatar
  • Online
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
8 years 9 months ago #121050 by tpartner
There is currently no way to put relevance or conditions on sub-questions but searching the forum will yield many examples of filtering with a hidden multiple-choice question. Search for "hidden multiple choice".

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The topic has been locked.
  • Mazi
  • Mazi's Avatar
  • Offline
  • Official LimeSurvey Partner
  • Official LimeSurvey Partner
More
8 years 9 months ago #121244 by Mazi
@walidhamra, unfortunately, your attachments got lost during activating our new website, sorry.

Relevance equations for sub-questions are supported at the upcoming Limesurvey 2.06 version. Please test the current release candidate at www.limesurvey.org/en/unstable-release .
Do not use that for production yet.

Best regards/Beste Grüße,
Dr. Marcel Minke
Need Help? We offer professional Limesurvey support: survey-consulting.com
Contact: marcel.minke(at)survey-consulting.com
The topic has been locked.
More
8 years 9 months ago #121251 by jelo

Mazi wrote: Relevance equations for sub-questions are supported at the upcoming Limesurvey 2.06 version.

When using a array number question LS 2.06 would make it possible to sum up every column to e.g. 100 and generate an error message if the column is not 100. Correct? Or was that possible with LS 2.05 as well?

The meaning of the word "stable" for users
www.limesurvey.org/forum/development/117...ord-stable-for-users
The topic has been locked.
  • Mazi
  • Mazi's Avatar
  • Offline
  • Official LimeSurvey Partner
  • Official LimeSurvey Partner
More
8 years 9 months ago #121252 by Mazi
To my knowledge that is no new feature at LS 2.06 (but I didn't check).

At LS 2.05 I would have used a question validation equation to sum up each column and check the related value. The same should be doable for LS 2.06.

Best regards/Beste Grüße,
Dr. Marcel Minke
Need Help? We offer professional Limesurvey support: survey-consulting.com
Contact: marcel.minke(at)survey-consulting.com
The topic has been locked.
More
8 years 9 months ago #121257 by jelo

Mazi wrote: At LS 2.05 I would have used a question validation equation to sum up each column and check the related value. .

Is there a link for an example or a section in the manual? I told someone that it isn't possible via EM in LS 2.05. Which seems to be a wrong statement.

The meaning of the word "stable" for users
www.limesurvey.org/forum/development/117...ord-stable-for-users
The topic has been locked.
  • Mazi
  • Mazi's Avatar
  • Offline
  • Official LimeSurvey Partner
  • Official LimeSurvey Partner
More
8 years 9 months ago - 8 years 9 months ago #121262 by Mazi

jelo wrote: Is there a link for an example or a section in the manual? I told someone that it isn't possible via EM in LS 2.05. Which seems to be a wrong statement.

See the "What is the total of column 3?" example at: manual.limesurvey.org/Expression_Manager....27that.27_variables

Best regards/Beste Grüße,
Dr. Marcel Minke
Need Help? We offer professional Limesurvey support: survey-consulting.com
Contact: marcel.minke(at)survey-consulting.com
Last edit: 8 years 9 months ago by Mazi.
The topic has been locked.
  • tpartner
  • tpartner's Avatar
  • Online
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
8 years 9 months ago #121267 by tpartner

When using a array number question LS 2.06 would make it possible to sum up every column to e.g. 100 and generate an error message if the column is not 100. Correct? Or was that possible with LS 2.05 as well?

In 2.05, I would use an array-texts questions with the following settings:
- Maximum characters: 3
- Numbers only: Yes
- Show totals for: Columns

Then, for example, if you had x-axis codes "A1", "A2", "A3", you could use a question validation equation like this:
Code:
sum(self.sq_A1.NAOK) == 100 AND sum(self.sq_A2.NAOK) == 100 AND sum(self.sq_A3.NAOK) == 100
And a question validation tip like this
Code:
{if(sum(self.sq_A1.NAOK) != 100 OR sum(self.sq_A2.NAOK) != 100 OR sum(self.sq_A3.NAOK) != 100, 'All columns must total to 100!', '')}

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The topic has been locked.
  • Mazi
  • Mazi's Avatar
  • Offline
  • Official LimeSurvey Partner
  • Official LimeSurvey Partner
More
8 years 9 months ago #121270 by Mazi
That's exactly the approach I had in mind. Thanks for sharing the detailed solution, Tony!

Best regards/Beste Grüße,
Dr. Marcel Minke
Need Help? We offer professional Limesurvey support: survey-consulting.com
Contact: marcel.minke(at)survey-consulting.com
The topic has been locked.

Lime-years ahead

Online-surveys for every purse and purpose