Welcome to the LimeSurvey Community Forum

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

mandatory answer for the second question depending on the first (in tables)

  • michael1834x
  • michael1834x's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
3 years 6 months ago #205265 by michael1834x
I have questionOne as table



I have questionTwo as table




Is it possible to enter a compulsory/mandatory answer for question 2 for sub-question 3 if in question 1 for sub-question 3 the third option ("Zle") is selected ??
The topic has been locked.
  • Joffm
  • Joffm's Avatar
  • Away
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
3 years 6 months ago - 3 years 6 months ago #205266 by Joffm
You may validate your second question.
questionOne_SQ003.NAOK!=3 OR (questionOne_SQ003.NAOK==3 and !is_empty(questionTwo_SQ003))

Joffm

Volunteers are not paid.
Not because they are worthless, but because they are priceless
Last edit: 3 years 6 months ago by Joffm.
The following user(s) said Thank You: michael1834x
The topic has been locked.
  • michael1834x
  • michael1834x's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
3 years 6 months ago #205267 by michael1834x
i have an error

whatever I choose in the first table in the second, I have this information:

"Please check the format of your answer."

and if it's complete, it won't let me go any further
The topic has been locked.
  • Joffm
  • Joffm's Avatar
  • Away
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
3 years 6 months ago - 3 years 6 months ago #205273 by Joffm
So, please send these questions and the validation you used as lss export.

Because I do not see any issue.

1. Option 3 not selected


2. Option 3 selected, no input in text


3. Option 3 selected, text entered


Joffm

Volunteers are not paid.
Not because they are worthless, but because they are priceless
Last edit: 3 years 6 months ago by Joffm.
The following user(s) said Thank You: michael1834x
The topic has been locked.
  • michael1834x
  • michael1834x's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
3 years 6 months ago #205276 by michael1834x

File Attachment:

File Name: surveystructure.lss
File Size:20 KB




thank you for your commitment
The topic has been locked.
  • Joffm
  • Joffm's Avatar
  • Away
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
3 years 6 months ago #205278 by Joffm
Hi,
well, I missed that the second question is an array(text).
Then you have to add the x_axis code as well.
And the validation is something like
questionOne_SQ003.NAOK!=3 OR (questionOne_SQ003.NAOK==3 and !is_empty(questionTwo_SQ003_SQ001)).

And your mistake was:
Of course you have to adapt the validation, if you use different answer option codes instead my "1", "2", "3", but "A1", "A2",...
So the final should be
questionOne_SQ003.NAOK!="A3" OR (questionOne_SQ003.NAOK=="A3" and !is_empty(questionTwo_SQ003_SQ001))

Joffm

Volunteers are not paid.
Not because they are worthless, but because they are priceless
The following user(s) said Thank You: michael1834x
The topic has been locked.
  • michael1834x
  • michael1834x's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
3 years 6 months ago - 3 years 6 months ago #205283 by michael1834x
can I please you send me your working project?

I still have that error

I will look through my project and see what's wrong


even if the shortcut to only one condition is still an error with the wrong response format

questionOne_SQ003.NAOK!="A3"


EDIT

OK, I think I entered the validations in the wrong place, now it works
Last edit: 3 years 6 months ago by michael1834x.
The topic has been locked.

Lime-years ahead

Online-surveys for every purse and purpose