Welcome to the LimeSurvey Community Forum

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

Array by column: each row only one column.

  • tammo
  • tammo's Avatar Topic Author
  • Offline
  • Official LimeSurvey Partner
  • Official LimeSurvey Partner
More
1 year 10 months ago #228651 by tammo
Please help us help you and fill where relevant:
Your LimeSurvey version: 5.3.15
Own server or LimeSurvey hosting: own
Survey theme/template: Owm version of Vanilla
==================
I want each row to choose maximum 1 column, not multiple.

So not: 
 

But each workshop (up to three workshops) can only choose one column.
 

I attached the .lss for you to experiment with.

 

File Attachment:

File Name: eachrowone...nmax.lss
File Size:27 KB


Tammo ter Hark at Respondage
For Limesurvey reporting, education and customized themes
respondage.nl

Please Log in to join the conversation.

More
1 year 10 months ago #228652 by jelo
Have you tried using unique(self) as a validation expression script?
That should normally do the trick.
 

The meaning of the word "stable" for users
www.limesurvey.org/forum/development/117...ord-stable-for-users

Please Log in to join the conversation.

  • tammo
  • tammo's Avatar Topic Author
  • Offline
  • Official LimeSurvey Partner
  • Official LimeSurvey Partner
More
1 year 10 months ago - 1 year 10 months ago #228654 by tammo
Replied by tammo on topic Array by column: each row only one column.
 

File Attachment:

File Name: eachrowone...max2.lss
File Size:39 KB


I have a hard time getting this to work:

using Array by column: do I add this as just like you wrote as the question validation? Then it does not work. I can choose multiple workshops as a first choice
using normal Array this does not work either. I can still choose for 1 workshop "first choice" as well as "second choice" as well as "third choice"

But I can only do this in question preview, because group preview will hide both questions.


Tammo ter Hark at Respondage
For Limesurvey reporting, education and customized themes
respondage.nl
Last edit: 1 year 10 months ago by tammo.

Please Log in to join the conversation.

More
1 year 10 months ago #228657 by jelo
In your attached LSS export I see no unique(self) in the "question validation equation" fields. In both questions you have added it to the display condition instead of the validation.

The meaning of the word "stable" for users
www.limesurvey.org/forum/development/117...ord-stable-for-users
The following user(s) said Thank You: tammo

Please Log in to join the conversation.

  • tammo
  • tammo's Avatar Topic Author
  • Offline
  • Official LimeSurvey Partner
  • Official LimeSurvey Partner
More
1 year 10 months ago #228658 by tammo
Replied by tammo on topic Array by column: each row only one column.
Thanks Jelo, I overlooked this.

Tammo


Tammo ter Hark at Respondage
For Limesurvey reporting, education and customized themes
respondage.nl

Please Log in to join the conversation.

Lime-years ahead

Online-surveys for every purse and purpose