Welcome to the LimeSurvey Community Forum

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

Ranking in Numeric Array

More
10 years 9 months ago #114240 by g3guy
Hi

I've gone through the forums and also looked at all the workarounds suggested, but still have had no luck for my case.

I have a numeric array (so 5 items, with dropdown numbers from 1 to 5 across two columns). Is there anyway to force only one number to be used per column? I tried working with the unique(Self) validation, but that's not working at expected.

Am I missing something obvious?

Thanks!
The topic has been locked.
More
10 years 9 months ago #114241 by tpartner
Replied by tpartner on topic Ranking in Numeric Array
If, for example, your X-scale codes are "A1" and A2", you can use this as the question validation equation:

Code:
unique(self.sq_A1) && unique(self.sq_A2)

Sample question attached:

File Attachment:

File Name: limesurvey...2601.lsq
File Size:5.78 KB

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The topic has been locked.
More
10 years 9 months ago #114242 by g3guy
Replied by g3guy on topic Ranking in Numeric Array
Oh wow! This works great. Thank you!
The topic has been locked.
Moderators: tpartnerholch

Lime-years ahead

Online-surveys for every purse and purpose