Dear all, I am reaching out to you as I am having an issue with a subquestion. I have question from which five subquestion depend upon and they will show up only if "YES" as an answer is selected. I have added a validation equation that only integer numbers can be used as an answer and I believe this equation overrides the conditions and one of the subquestion appears even when having selected "NO" as an answer. Could someone help me out please? Thank you!
Dear Tony,Thank you for your reply, the version is LimeSurvey Version 4.3.30 201207. I have attached the survey structure to the question - the related questions are 12 - 15 but I am not sure if I cut it right! I would like to have question 15 appear only when question 12 is "YES" but keeping the question validation equation. Thank you for your help!
Dear Tpartner and everyone on the forum! I have uploaded the two questions in a test version. Test 2 should only appear when test 1 is selected and we have an equation that answers should only be integer numbers, however it appears that the equation is saying that all of our options have to be selected to have the equation validated. I hope I was able to explain this better and I remain at your disposal, thank you for your help!!
Please only upload LSS files. LSQ files (like LSG files) are creating an additional work for those that are willing to respond (in their free time). For LSQ files one would have to create a survey first and then a group, etc. Also, often the geneeral settings of a survey can have an impact as well.
Also, they are language sensistive and this means that we need to guess the language right (or open them im Source mode) to make sure they can be imported into the survey and group we created.
So, take your survey, make a copy, delete everything that is not necessary and export it as a LSS file.
Help us to help you.
Help us to help you!
Provide your LS version and where it is installed (own server, uni/employer, SaaS hosting, etc.).
Always provide a LSS file (not LSQ or LSG).
Note: I answer at this forum in my spare time, I'm not a LimeSurvey GmbH employee.
Thannk you Holch, I am new to this so apologies for making things a bit more complicated! Please let me know if this works - I upload my file lss.xml but lime survey won;t accept it as it wants only .lss. I've tried renaming it but still doesn't work. Any other way I can upload what you are asking please? thank you dearly
Additionally, it is far easier to compose (and read) ExpressionScript equations if you differentiate between x and y axis sub-question codes, using "X" and "Y".
So, if you want the first four columns to be numeric-only, something like this in the question validation equation:
Code:
(is_empty(self.sq_Y01_X01.NAOK) OR is_numeric(self.sq_Y01_X01.NAOK))
AND
(is_empty(self.sq_Y01_X02.NAOK) OR is_numeric(self.sq_Y01_X02.NAOK))
AND
(is_empty(self.sq_Y01_X03.NAOK) OR is_numeric(self.sq_Y01_X03.NAOK))
AND
(is_empty(self.sq_Y01_X04.NAOK) OR is_numeric(self.sq_Y01_X04.NAOK))
AND
(is_empty(self.sq_Y02_X01.NAOK) OR is_numeric(self.sq_Y02_X01.NAOK))
AND
(is_empty(self.sq_Y02_X02.NAOK) OR is_numeric(self.sq_Y02_X02.NAOK))
AND
(is_empty(self.sq_Y02_X03.NAOK) OR is_numeric(self.sq_Y02_X03.NAOK))
AND
(is_empty(self.sq_Y02_X04.NAOK) OR is_numeric(self.sq_Y02_X04.NAOK))
AND
(is_empty(self.sq_other_X01.NAOK) OR is_numeric(self.sq_other_X01.NAOK))
AND
(is_empty(self.sq_other_X02.NAOK) OR is_numeric(self.sq_other_X02.NAOK))
AND
(is_empty(self.sq_other_X03.NAOK) OR is_numeric(self.sq_other_X03.NAOK))
AND
(is_empty(self.sq_other_X04.NAOK) OR is_numeric(self.sq_other_X04.NAOK))