- Posts: 21
- Thank you received: 1
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
- Topic Author
- Offline
- Junior Member
Less
More
5 years 1 month ago #181767
by FreshLemonUser
How to disable the other options after the first 5 was filled or ranked? was created 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.
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
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 10109
- Thank you received: 3593
5 years 1 month ago #181784
by tpartner
Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
Replied by tpartner on topic How to disable the other options after the first 5 was filled or ranked?
There is a setting for maximum answers in the ranking type question.
- manual.limesurvey.org/Question_type_-_Ra...rs_.28max_answers.29
- 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
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 13643
- Thank you received: 2491
5 years 1 month ago #181791
by DenisChenu
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.
Replied by DenisChenu on topic How to disable the other options after the first 5 was filled or ranked?
And for 1st solution
unique(self.NAOK) and count(self.NAOK)==5
in
manual.limesurvey.org/Question_type_-_Ar...28em_validation_q.29
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
- Topic Author
- Offline
- Junior Member
Less
More
- Posts: 21
- Thank you received: 1
5 years 1 month ago #181799
by FreshLemonUser
Replied by FreshLemonUser on topic How to disable the other options after the first 5 was filled or ranked?
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
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
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 13643
- Thank you received: 2491
5 years 1 month ago - 5 years 1 month ago #181803
by DenisChenu
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.
Replied by DenisChenu on topic How to disable the other options after the first 5 was filled or ranked?
Something like this :
Ranking in array with max
I use sub question relevance !is_empty or count(self)
And since your client need more option , you can contact me for professionnal support …
I use sub question relevance !is_empty or count(self)
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
- Topic Author
- Offline
- Junior Member
Less
More
- Posts: 21
- Thank you received: 1
5 years 1 month ago - 5 years 1 month ago #181804
by FreshLemonUser
Replied by FreshLemonUser on topic How to disable the other options after the first 5 was filled or ranked?
Hi dear DenisChenu
Thank you so much, i´ll check this.
A Fresh Lemon User
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
- Topic Author
- Offline
- Junior Member
Less
More
- Posts: 21
- Thank you received: 1
5 years 1 month ago #181805
by FreshLemonUser
Replied by FreshLemonUser on topic How to disable the other options after the first 5 was filled or ranked?
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
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
- Topic Author
- Offline
- Junior Member
Less
More
- Posts: 21
- Thank you received: 1
5 years 1 month ago #181813
by FreshLemonUser
Replied by FreshLemonUser on topic How to disable the other options after the first 5 was filled or ranked?
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?
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
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 13643
- Thank you received: 2491
5 years 1 month ago #181814
by DenisChenu
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.
Replied by DenisChenu on topic How to disable the other options after the first 5 was filled or ranked?
This can not be used in Sub question relevance, then need writing complete subquestion
!is_empty(Q00_SQ01.NAOK) or count(self.NAOK)
!is_empty(Q00_SQ01.NAOK) or count(self.NAOK)
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.