Welcome to the LimeSurvey Community Forum

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

Make one column unique in an array

  • eniisula
  • eniisula's Avatar Topic Author
  • Offline
  • Premium Member
  • Premium Member
More
3 years 1 month ago - 3 years 1 month ago #226533 by eniisula
Make one column unique in an array was created 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 1 month ago by eniisula.

Please Log in to join the conversation.

  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
3 years 1 month ago #226551 by tpartner
Replied by tpartner on topic Make one column unique in an array

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.

  • eniisula
  • eniisula's Avatar Topic Author
  • Offline
  • Premium Member
  • Premium Member
More
3 years 1 month ago #226559 by eniisula
Replied by eniisula on topic Make one column unique in an array
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.

  • Joffm
  • Joffm's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
3 years 1 month ago #226561 by Joffm
Replied by Joffm on topic Make one column unique in an array

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.

  • eniisula
  • eniisula's Avatar Topic Author
  • Offline
  • Premium Member
  • Premium Member
More
3 years 1 month ago - 3 years 1 month ago #226599 by eniisula
Replied by eniisula on topic Make one column unique in an array
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 1 month ago by eniisula.

Please Log in to join the conversation.

  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
3 years 1 month ago #226601 by tpartner
Replied by tpartner on topic Make one column unique in an array
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.

  • eniisula
  • eniisula's Avatar Topic Author
  • Offline
  • Premium Member
  • Premium Member
More
3 years 1 month ago #226602 by eniisula
Replied by eniisula on topic Make one column unique in an array
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