Hi,
the usual way to achieve this is to validate the question using the function "unique"
Enter in "question validation equation" : unique(self)
and in "question validation tip" a text of your choice, like "All values have to unique"
Please read here
[url]
www.limesurvey.org/manual/ExpressionScri...mplemented_functions
[/url]
and
[url]
www.limesurvey.org/manual/ExpressionScri....22that.22_variables
[/url]
Joffm
P.S.
The thread that you linked is 8 years old.
We do not know which version nicoillo used.
Maybe this function (unique) wasn't implemented at that time (I do not know).
But therefore he probably did it the hard way, comparing each subquestion with all others.
Another issue here
((Q05_SQ001 != Q05_SQ002) AND (Q05_SQ001 != Q05_SQ003) AND (Q05_SQ001 != Q05_SQ004) AND (Q05_SQ001 != Q05_SQ005) AND
(Q05_SQ002 != Q05_SQ001) AND (Q05_SQ002 != Q05_SQ003) AND (Q05_SQ002 != Q05_SQ004) AND (Q05_SQ002 != Q05_SQ005) AND
(Q05_SQ003 != Q05_SQ001) AND (Q05_SQ003 != Q05_SQ002) AND (Q05_SQ003 != Q05_SQ004) AND (Q05_SQ003 != Q05_SQ005) AND
(Q05_SQ004 != Q05_SQ001) AND (Q05_SQ004 != Q05_SQ002) AND (Q05_SQ004 != Q05_SQ003) AND (Q05_SQ004 != Q05_SQ005) AND
(Q05_SQ005 != Q05_SQ001) AND (Q05_SQ005 != Q05_SQ002) AND (Q05_SQ005 != Q05_SQ003) AND (Q05_SQ005 != Q05_SQ004))
You see the not necessary double comparisons. Each comparison appears twice.
This can be done shorter
(
(Q05_SQ001 != Q05_SQ002) AND (Q05_SQ001 != Q05_SQ003) AND (Q05_SQ001 != Q05_SQ004) AND (Q05_SQ001 != Q05_SQ005) AND
(Q05_SQ002 != Q05_SQ003) AND (Q05_SQ002 != Q05_SQ004) AND (Q05_SQ002 != Q05_SQ005) AND
(Q05_SQ003 != Q05_SQ004) AND (Q05_SQ003 != Q05_SQ005) AND
(Q05_SQ004 != Q05_SQ005))