- Posts: 162
- Thank you received: 5
Welcome to the LimeSurvey Community Forum
Ask the community, share ideas, and connect with other LimeSurvey users!
Sum dont work
- brais24
- Topic Author
- Offline
- Elite Member
The thing is, if you fill this question (multiple numerical input with min sum value 50 and max sum value 100) with the data of the attached images
Limesurvey dont let you continue, say that the answer is incorrect even when its marked as correct.
Can someone help me with this, please?
Thank you.
- Joffm
- Away
- LimeSurvey Community Team
- Posts: 12785
- Thank you received: 3940
But you may validate the values instead using min.value and max.value
intval(10*sum(self.NAOK))/10 ge 50 AND intval(10*sum(self.NAOK))/10 le 100
Joffm
On the other side: Talking about bugs in your outdated version (2.50/2.73, isn't it?) doesn't help.
Volunteers are not paid.
Not because they are worthless, but because they are priceless
- DenisChenu
- Offline
- LimeSurvey Community Team
- Posts: 13935
- Thank you received: 2551
Maybe something with PHP version ?
Confirm on limequery too.
Can you report the issue ?
Currently : maybe you can set default values to 0 ?
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.
- tpartner
- Offline
- LimeSurvey Community Team
- Posts: 10632
- Thank you received: 3697
Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
- DenisChenu
- Offline
- LimeSurvey Community Team
- Posts: 13935
- Thank you received: 2551
Your question are mandatory : mean need a value on all input …
Remove mandatory … if you want to have 50 at minum uncheck Value range allows missing
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.
- brais24
- Topic Author
- Offline
- Elite Member
- Posts: 162
- Thank you received: 5
- brais24
- Topic Author
- Offline
- Elite Member
- Posts: 162
- Thank you received: 5
- brais24
- Topic Author
- Offline
- Elite Member
- Posts: 162
- Thank you received: 5
- DenisChenu
- Offline
- LimeSurvey Community Team
- Posts: 13935
- Thank you received: 2551
I check with 2.73.3 : seems OKbrais24 wrote: Even with not mandatory the issue happens, my LS version is 2.72.3+171020
Maybe this fix needed : github.com/SondagesPro/LimeSurvey-Sondag...f16720c485eb3aa3e8e8
Denis
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.
- brais24
- Topic Author
- Offline
- Elite Member
- Posts: 162
- Thank you received: 5
Joffm wrote: Yes, seems to be a bug. Still happens in 3.25.1.
But you may validate the values instead using min.value and max.value
intval(10*sum(self.NAOK))/10 ge 50 AND intval(10*sum(self.NAOK))/10 le 100
Joffm
On the other side: Talking about bugs in your outdated version (2.50/2.73, isn't it?) doesn't help.
I try to use that on question validation equation but dont do nothing, where should I put that to make it work?
- brais24
- Topic Author
- Offline
- Elite Member
- Posts: 162
- Thank you received: 5
brais24 wrote:
Joffm wrote: Yes, seems to be a bug. Still happens in 3.25.1.
But you may validate the values instead using min.value and max.value
intval(10*sum(self.NAOK))/10 ge 50 AND intval(10*sum(self.NAOK))/10 le 100
Joffm
On the other side: Talking about bugs in your outdated version (2.50/2.73, isn't it?) doesn't help.
I try to use that on question validation equation but dont do nothing, where should I put that to make it work?
Ok, I get done, Thank you all and specially Joffm, should I report this bug?
- DenisChenu
- Offline
- LimeSurvey Community Team
- Posts: 13935
- Thank you received: 2551
Please, yes.brais24 wrote: Ok, I get done, Thank you all and specially Joffm, should I report this bug?
Strangely
echo "sum(90,8,0.4,0.4,1.2) = ".array_sum([90,8,0.4,0.4,1.2]);
sum(90,8,0.4,0.4,1.2) = 100
Don't understand why it don't work …
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.