- Posts: 3
- Thank you received: 1
Welcome to the LimeSurvey Community Forum
Ask the community, share ideas, and connect with other LimeSurvey users!
Conditional minimum value
- ElysiaChlorotica
- Topic Author
- Offline
- New Member
Less
More
2 years 5 months ago #221576
by ElysiaChlorotica
Conditional minimum value was created by ElysiaChlorotica
I am trying to set a conditional minimum value for a numerical input question, dependig on the number of selected answers of the previous multiple choice question.
The following approach does not work:
Minimum value set to
or
Question validation equation set to
where
is the question code of the previous question.
I have also tried to replace
with
, but it doesn't work either.
What am i missing?
It may be worth mentioning that the previous multiple choice question is not mandatory and can be skipped, which should result in a minimum value of 0 in the following numerical input question.
The following approach does not work:
Minimum value set to
Code:
count(that.MultipleChoiceQuestion)
Question validation equation set to
Code:
this >= count(that.MultipleChoiceQuestion)
where
Code:
MultipleChoiceQuestion
I have also tried to replace
Code:
this
Code:
self
What am i missing?
It may be worth mentioning that the previous multiple choice question is not mandatory and can be skipped, which should result in a minimum value of 0 in the following numerical input question.
The topic has been locked.
- Joffm
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 12943
- Thank you received: 3979
2 years 5 months ago #221577
by Joffm
Volunteers are not paid.
Not because they are worthless, but because they are priceless
Replied by Joffm on topic Conditional minimum value
Hi,
I do not see any issue using
"minimum value": count(that.Q1)
But you forgot to tell us which version of Limesurvey you are using.
Joffm
I do not see any issue using
"minimum value": count(that.Q1)
But you forgot to tell us which version of Limesurvey you are using.
Joffm
Volunteers are not paid.
Not because they are worthless, but because they are priceless
The topic has been locked.
- DenisChenu
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 13648
- Thank you received: 2491
2 years 5 months ago #221590
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 Conditional minimum value
Remind the NAOK if you have some relevance or filter.
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: tpartner, ElysiaChlorotica
The topic has been locked.
- ElysiaChlorotica
- Topic Author
- Offline
- New Member
Less
More
- Posts: 3
- Thank you received: 1
2 years 5 months ago - 2 years 5 months ago #221622
by ElysiaChlorotica
Replied by ElysiaChlorotica on topic Conditional minimum value
Thank you for your answers. I am using LimeSurvey Version 2.62.2+170203
This works:
However, if the minimum value is 0, the shown tip is somewhat wrong.
It says
Your answer must be at least 0Your answer must be 0
When it should say
Your answer must be at least 0
like it does with the other numbers.
Is there some workaround for this issue that does not include setting a maximum value or needing administrative privileges?
This works:
Code:
count(that.MultipleChoiceQuestion.NAOK)
However, if the minimum value is 0, the shown tip is somewhat wrong.
It says
Your answer must be at least 0Your answer must be 0
When it should say
Your answer must be at least 0
like it does with the other numbers.
Is there some workaround for this issue that does not include setting a maximum value or needing administrative privileges?
Last edit: 2 years 5 months ago by ElysiaChlorotica.
The topic has been locked.
- ElysiaChlorotica
- Topic Author
- Offline
- New Member
Less
More
- Posts: 3
- Thank you received: 1
2 years 5 months ago #221623
by ElysiaChlorotica
Replied by ElysiaChlorotica on topic Conditional minimum value
The following user(s) said Thank You: DenisChenu
The topic has been locked.
- DenisChenu
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 13648
- Thank you received: 2491
2 years 5 months ago #221698
by DenisChenu
About ge VS >= : what is your LimeSurvey version and build number ?
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 Conditional minimum value
It's great if can try to fix it (unsure) : can you report the issue pleas e?However, if the minimum value is 0, the shown tip is somewhat wrong.
It says
Your answer must be at least 0Your answer must be 0
When it should say
Your answer must be at least 0
About ge VS >= : what is your LimeSurvey version and build number ?
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.
- DenisChenu
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 13648
- Thank you received: 2491
2 years 5 months ago #221709
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 Conditional minimum value
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.