- Posts: 2
- Thank you received: 0
Ask the community, share ideas, and connect with other LimeSurvey users!
!is_empty(Q15_P01)
Joffm wrote: Hi
!is_empty(Q15_P01) This is wrong syntax.
If you use an array(text) you have two subquestion scales (y-scale and x-scale)
So the QCode contains both to select a certain cell, like
!is(empty(Q1_Y001_X004)
Your idea of "subquestion validation" would succeed with "!is_empty(this)"
BUT: It checks ALL subquestions.
Like the example in the sample survey
For example, if you want to allow only numbers that are a multiple of 3 as answers, the equation would be:
(this / 3) == floor(this/3)
To validate only this subquestion you have to check all cells of that row in "question validation"
!is(empty(Q15_P01_X001) and !is(empty(Q15_P01_X002) and !is(empty(Q15_P01_X003) and ...
Joffm