Welcome to the LimeSurvey Community Forum

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

Referring to quota in EM

  • Jmantysalo
  • Jmantysalo's Avatar Topic Author
  • Offline
  • Platinum Member
  • Platinum Member
More
4 years 6 days ago #197489 by Jmantysalo
Referring to quota in EM was created by Jmantysalo
Is there any plans to integrate quota system and expression manager? Currently one can not, for example, show "here are N seats available for Monday 10 AM."

Or, from another viewpoint, possibility to refer previous answers in EM. Like "You scored better than X percent of people taking the test so far."
The topic has been locked.
  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
4 years 5 days ago #197512 by DenisChenu
Replied by DenisChenu on topic Referring to quota in EM

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
  • DenisChenu's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
4 years 5 days ago #197513 by DenisChenu
Replied by DenisChenu on topic Referring to quota in EM

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.
  • Jmantysalo
  • Jmantysalo's Avatar Topic Author
  • Offline
  • Platinum Member
  • Platinum Member
More
4 years 5 days ago #197520 by Jmantysalo
Replied by Jmantysalo on topic Referring to quota in EM
Exactly what I want! How do I enable this for testing?
The topic has been locked.
  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
4 years 5 days ago #197588 by DenisChenu
Replied by DenisChenu on topic Referring to quota in EM
Enable the plugin if you are in 4.X

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.
  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
4 years 5 days ago #197604 by tpartner
Replied by tpartner on topic Referring to quota in EM

See github.com/LimeSurvey/LimeSurvey/tree/ma...lugins/statFunctions

Should this be added to the ExpressionScript documentation - manual.limesurvey.org/ExpressionScript_-...#Access_to_functions ?

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The topic has been locked.
  • Jmantysalo
  • Jmantysalo's Avatar Topic Author
  • Offline
  • Platinum Member
  • Platinum Member
More
4 years 5 days ago #197607 by Jmantysalo
Replied by Jmantysalo on topic Referring to quota in EM
Well, that was easy. Much more practical than quotas. Maybe this will grow similarly than EM has kind of superceded conditions?

But why statCountIf returns nothing, and not the number 0, if there are no match at all?

What is the status of this? Is it an experimental feature that might disappear in the future?
The topic has been locked.
  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
4 years 4 days ago #197618 by DenisChenu
Replied by DenisChenu on topic Referring to quota in EM

Jmantysalo wrote: But why statCountIf returns nothing, and not the number 0, if there are no match at all?

Unsure , you are sure of the code ? I think it muts return 0 too.

Jmantysalo wrote: What is the status of this? Is it an experimental feature that might disappear in the future?

No

1. it's a core plugin
2. With a test each time someone update code : github.com/LimeSurvey/LimeSurvey/tree/ma...46-fixed-em-function

Should this be added to the ExpressionScript documentation - manual.limesurvey.org/ExpressionScript_-...#Access_to_functions ?

Maybe, but maybe more create a page on "How to add new Expression Manager function" ?

We have this one too : github.com/LimeSurvey/LimeSurvey/tree/ma...mo/demoAddEmFunction

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
  • DenisChenu's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
4 years 4 days ago #197619 by DenisChenu
Replied by DenisChenu on topic Referring to quota in EM

tpartner wrote:

See github.com/LimeSurvey/LimeSurvey/tree/ma...lugins/statFunctions

Should this be added to the ExpressionScript documentation - manual.limesurvey.org/ExpressionScript_-...#Access_to_functions ?

manual.limesurvey.org/ExpressionScript_-..._.28New_in_4.0.0_.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 topic has been locked.
  • Jmantysalo
  • Jmantysalo's Avatar Topic Author
  • Offline
  • Platinum Member
  • Platinum Member
More
4 years 4 days ago #197624 by Jmantysalo
Replied by Jmantysalo on topic Referring to quota in EM
About the zero vs. nothing please see attached lss-file. It says "Already has answered" if there is no answer at all (and the survey is active -- it says "Already 0 has answered" if when previewing).
The topic has been locked.
  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
4 years 4 days ago #197645 by DenisChenu
Replied by DenisChenu on topic Referring to quota in EM

Jmantysalo wrote: About the zero vs. nothing please see attached lss-file. It says "Already has answered" if there is no answer at all (and the survey is active -- it says "Already 0 has answered" if when previewing).

OK :)

Then : its better in my opinion

"" : no data can be returned
0 : data can be returned, but it's 0

It's clear enough.

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.
  • Jmantysalo
  • Jmantysalo's Avatar Topic Author
  • Offline
  • Platinum Member
  • Platinum Member
More
4 years 4 days ago #197647 by Jmantysalo
Replied by Jmantysalo on topic Referring to quota in EM
To me it sounds illogical. No answers (with given restrictions) is zero, no matter why.
The topic has been locked.

Lime-years ahead

Online-surveys for every purse and purpose