Welcome to the LimeSurvey Community Forum

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

Make one column unique in an array

More
3 years 5 months ago - 3 years 5 months ago #226533 by eniisula
Please help us help you and fill where relevant:
Your LimeSurvey version:  Version 5.2.13+220207
==================
I have this question where I want the first column to be selected only by one of the options (1, 2 or 3). I tried with unique(self) but this makes all of the columns unique and it does not allow me to move in the other page even when the 3 options have different columns selected. 

Can someone help me solve this?

Thank you in advance!
Last edit: 3 years 5 months ago by eniisula.

Please Log in to join the conversation.

More
3 years 5 months ago #226551 by tpartner

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.

Please Log in to join the conversation.

More
3 years 5 months ago #226559 by eniisula
Thank you for your reply! This works fine on my previous .lss but I have an array filter at my full survey and it does not seem to work in that case.

What could I do?

Please Log in to join the conversation.

More
3 years 5 months ago #226561 by Joffm

Volunteers are not paid.
Not because they are worthless, but because they are priceless
The following user(s) said Thank You: eniisula

Please Log in to join the conversation.

More
3 years 5 months ago - 3 years 5 months ago #226599 by eniisula
Thank you Joffm,

I am not figuring out what should I change, I tried some ways but none of them seem to work. count(G02Q14_AO01.NAOK) <= 1

If it is not much trouble for you could you send me how you did yours on your screenshot? If not, still thank you for your time.
Last edit: 3 years 5 months ago by eniisula.

Please Log in to join the conversation.

More
3 years 5 months ago #226601 by tpartner
That is not close to what I suggested. Joffm is just suggesting appending NAOK.

Code:
countif('AO01', self.NAOK) <= 1

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The following user(s) said Thank You: eniisula

Please Log in to join the conversation.

More
3 years 5 months ago #226602 by eniisula
Thank you again.

I tried this one too but there is something wrong. Still thank you and I will try to figure it out on my own now.

Please Log in to join the conversation.

Moderators: tpartnerholch

Lime-years ahead

Online-surveys for every purse and purpose