Welcome to the LimeSurvey Community Forum

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

Error when using Expression Manager to hide subquestions for multiple choice

  • byan
  • byan's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
4 years 2 weeks ago - 4 years 2 weeks 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?
Last edit: 4 years 2 weeks ago by byan.
The topic has been locked.
  • Joffm
  • Joffm's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
4 years 2 weeks 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
The topic has been locked.
  • holch
  • holch's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
4 years 2 weeks ago #196204 by holch
And in the LSS export only include the questions that are relevant for this issue, not the whole questionnaire.

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.
  • holch
  • holch's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
4 years 2 weeks 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 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.
  • byan
  • byan's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
4 years 2 weeks ago #196212 by byan
Sorry about that. Just uploaded the lss export.
The topic has been locked.
  • byan
  • byan's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
4 years 2 weeks 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.

The topic has been locked.
  • holch
  • holch's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
4 years 2 weeks 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 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.
  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
4 years 2 weeks 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.
The topic has been locked.
  • byan
  • byan's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
4 years 2 weeks ago #196228 by byan
Submitted. ID: 16084 under the "Conditions" category. Thanks!
The following user(s) said Thank You: DenisChenu, tpartner
The topic has been locked.
  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
4 years 2 weeks ago #196232 by tpartner
Thanks.

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The topic has been locked.
  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
4 years 2 weeks 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 .
I don't answer to private message.
The topic has been locked.

Lime-years ahead

Online-surveys for every purse and purpose