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

More
1 week 16 hours 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.
Attachments:

Please Log in or Create an account to join the conversation.

LimeSurvey Partners
More
1 week 8 hours 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

Please Log in or Create an account to join the conversation.

More
1 week 6 hours 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 (or search sondages pro).
An error happen ? Before make a new topic : remind the Debug mode .
The following user(s) said Thank You: FreshLemonUser

Please Log in or Create an account to join the conversation.

More
1 week 4 hours 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
Attachments:

Please Log in or Create an account to join the conversation.

More
1 week 3 hours ago - 1 week 3 hours 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 (or search sondages pro).
An error happen ? Before make a new topic : remind the Debug mode .
Last edit: 1 week 3 hours ago by DenisChenu.

Please Log in or Create an account to join the conversation.

More
1 week 3 hours ago - 1 week 3 hours ago #181804 by FreshLemonUser
Hi dear DenisChenu

Thank you so much, i´ll check this.

A Fresh Lemon User
Last edit: 1 week 3 hours ago by FreshLemonUser.

Please Log in or Create an account to join the conversation.

More
1 week 3 hours 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

Please Log in or Create an account to join the conversation.

More
1 week 2 hours 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?

Please Log in or Create an account to join the conversation.

More
1 week 2 hours 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 (or search sondages pro).
An error happen ? Before make a new topic : remind the Debug mode .

Please Log in or Create an account to join the conversation.

Start now!

Just create your account and start using Limesurvey today.

Register now
Join our Newsletter!