Error when using Expression Manager to hide subquestions for multiple choice

More
2 months 2 days ago - 2 months 2 days ago #196196 by byan
I I have two questions. The first is single choice (G01Q01) and second is multiple choice (G01Q02). The goal is to hide subquestion in the second question based on the answer to the first question. In the attached example, subquestion 1 (SQ01) should be hidden if the answer to question 1 is not the first choice (AO01).

My solution was to add (G01Q01.NAOK == "AO01") in the condition box of SQ01. It did hide the first subquestion of G01Q02 unless the first choice is selected in G01Q01. However, the survey cannot be submitted unless the first choice is selected in G01Q01(See pictures below). The survey example is attached. Any suggestions?
Attachments:
Last edit: 2 months 2 days ago by byan.

Please Log in to join the conversation.

LimeSurvey Partners
More
2 months 2 days ago #196198 by Joffm
Hi,
you attached a lsq export; please attach a lss export.

lsg (group) and lsq (question) exports are language sensitive and don't contain the other settings of your survey.

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.

More
2 months 2 days ago #196204 by holch
And in the LSS export only include the questions that are relevant for this issue, not the whole questionnaire.

I'm not a LimeSurvey GmbH member. I answer at the LimeSurvey forum in my spare time. No support via private message.
Some helpful links: Manual (EN) | Question Types | Workarounds

Please Log in to join the conversation.

More
2 months 2 days ago #196206 by holch
But from what I see, your survey is exactly doing what you want. Not sure where the actual problem is. Is it this part?

However, the survey cannot be submitted unless the first choice is selected in G01Q01


Could you explain a little bit more, what you mean with that?

I'm not a LimeSurvey GmbH member. I answer at the LimeSurvey forum in my spare time. No support via private message.
Some helpful links: Manual (EN) | Question Types | Workarounds

Please Log in to join the conversation.

More
2 months 2 days ago #196212 by byan
Sorry about that. Just uploaded the lss export.

Please Log in to join the conversation.

More
2 months 2 days ago #196213 by byan
Here is the problem. As shown in the screenshot, when option 2 was selected (in fact, any choice other than option 1), the error message "One or more questions have not been answered in a valid manner. You cannot proceed until these answers are valid." popped up, preventing the survey from moving to the next page or, in this case, being submitted.

Attachments:

Please Log in to join the conversation.

More
2 months 2 days ago #196215 by holch
I can confirm this behavior, but I can currently not explain it. Tried a couple of things to get rid of it, but without success. Need to check deeper, might be a bug.

I'm not a LimeSurvey GmbH member. I answer at the LimeSurvey forum in my spare time. No support via private message.
Some helpful links: Manual (EN) | Question Types | Workarounds

Please Log in to join the conversation.

More
2 months 2 days ago #196222 by tpartner
byan, please file a bug report.

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
Official LimeSurvey Partner - partnersurveys.com

Please Log in to join the conversation.

More
2 months 2 days ago #196228 by byan
Submitted. ID: 16084 under the "Conditions" category. Thanks!
The following user(s) said Thank You: DenisChenu, tpartner

Please Log in to join the conversation.

More
2 months 2 days ago #196232 by tpartner
Thanks.

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
Official LimeSurvey Partner - partnersurveys.com

Please Log in to join the conversation.

More
2 months 2 days ago #196256 by DenisChenu
For information : no issue in 3.X

I take a look

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 .
An error happen ? Before make a new topic : remind the Debug mode .

Please Log in to join the conversation.

Start now!

Just create your account and start using Limesurvey today.

Register now