Welcome to the LimeSurvey Community Forum

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

How to disable the other options after the first 5 was filled or ranked?

  • FreshLemonUser
  • FreshLemonUser's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
5 years 1 month ago #181767 by FreshLemonUser
Hi guys,

I have a rank question with a bunch of options, so i have to randomize the options and disable the other options after the customer fill, rank or select the first 5.

i can use this:



or this:




I prefer to use the second one but my customer wants to use the first one.


Can anyone help me? How can i do this?


Thanks in advanced.
The topic has been locked.
  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
5 years 1 month ago #181784 by tpartner
There is a setting for maximum answers in the ranking type question.

- manual.limesurvey.org/Question_type_-_Ra...rs_.28max_answers.29

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: FreshLemonUser
The topic has been locked.
  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
5 years 1 month ago #181791 by DenisChenu
And for 1st solution
unique(self.NAOK) and count(self.NAOK)==5
in
manual.limesurvey.org/Question_type_-_Ar...28em_validation_q.29

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand , plugin development .
I don't answer to private message.
The following user(s) said Thank You: FreshLemonUser
The topic has been locked.
  • FreshLemonUser
  • FreshLemonUser's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
5 years 1 month ago #181799 by FreshLemonUser
Hi dear DenisChenu

Thank you so much, i already have implemented this syntax on my questionnaires, i can't remember who in the community helped me before. "unique(self.NAOK) and count(self.NAOK)==5", and it works for validation.



But i need to disable the other fields, do you have any idea how to disable the other fields? My customer want specifically to disable the other options. (I don´t know why, but...)

Let me know if i can have other way to do that, the sintax works perfectly

Best regards.

A Fresh Lemon User
The topic has been locked.
  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
5 years 1 month ago - 5 years 1 month ago #181803 by DenisChenu
Something like this : Ranking in array with max

I use sub question relevance !is_empty or count(self)<3

And since your client need more option , you can contact me for professionnal support …

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand , plugin development .
I don't answer to private message.
Last edit: 5 years 1 month ago by DenisChenu.
The topic has been locked.
  • FreshLemonUser
  • FreshLemonUser's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
5 years 1 month ago - 5 years 1 month ago #181804 by FreshLemonUser
Hi dear DenisChenu

Thank you so much, i´ll check this.

A Fresh Lemon User
Last edit: 5 years 1 month ago by FreshLemonUser.
The topic has been locked.
  • FreshLemonUser
  • FreshLemonUser's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
5 years 1 month ago #181805 by FreshLemonUser
Hi dear Tony Partner

I already programmed this option and it looks like this.

I will try to convince my client to use this form of question

Best regards

A Fresh Lemon User
The topic has been locked.
  • FreshLemonUser
  • FreshLemonUser's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
5 years 1 month ago #181813 by FreshLemonUser
Hi DenuisChenu

is_empty fuction isnt working on my questionnarie I have LimeSurvey Versión 3.16.1+190314

i've put in the sub question equation

!is_empty or count(self)<6
!is_empty(this.NAOK) or count(self)<5

what am I doing wrong.

How may you help me?
The topic has been locked.
  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
5 years 1 month ago #181814 by DenisChenu
This can not be used in Sub question relevance, then need writing complete subquestion

!is_empty(Q00_SQ01.NAOK) or count(self.NAOK)<3

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand , plugin development .
I don't answer to private message.
The topic has been locked.

Lime-years ahead

Online-surveys for every purse and purpose