Welcome to the LimeSurvey Community Forum

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

Validating an Array (Texts)

More
11 years 7 months ago #103025 by tpartner
Can you attach a small sample survey?

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The topic has been locked.
More
11 years 7 months ago - 11 years 7 months ago #103068 by TMSWhite
A working example is attached.

File Attachment:

File Name: limesurvey...1239.lss
File Size:24.95 KB


In this case, you use:
Code:
sum(self.sq_A.NAOK)

The reason this works is that sum(x,y,z) will only sum the visible values if you use the .NAOK suffix on each of x, y, and z (which is what self.sq_A.NAOK does). Without the .NAOK suffix, the sum will always be zero if any rows are invisible.

Here is a screen-shot:

Last edit: 11 years 7 months ago by TMSWhite.
The following user(s) said Thank You: DenisChenu, Dede1989
The topic has been locked.
Moderators: tpartnerholch

Lime-years ahead

Online-surveys for every purse and purpose