Welcome to the LimeSurvey Community Forum

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

Using EM Variable in the Assesment rules page

  • kogger
  • kogger's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
4 years 7 months ago #188833 by kogger
Hello,

I'm creating a self-assessment survey and I would like to calculate percentages for each question (arrays with sub-questions and answers with assessment values.)

My question is: Do I have access to the EM variables (other than {TOTAL} and {PERC}) from the assessment rules messages? I've trying different combinations and I cannot get any values to display...
The topic has been locked.
  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
4 years 7 months ago #188845 by tpartner
Replied by tpartner on topic Using EM Variable in the Assesment rules page
No, I think you will be better off using Expression Manager to load your own "scores" into hidden (via CSS) equation questions and then create a custom assessments message.

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: kogger
The topic has been locked.
  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
4 years 7 months ago #188849 by DenisChenu
Replied by DenisChenu on topic Using EM Variable in the Assesment rules page

tpartner wrote: No, I think you will be better off using Expression Manager to load your own "scores" into hidden (via CSS) equation questions and then create a custom assessments message.

?

It's true in 2.6lts and before : all usage of expression manager can be used in assessment message.
It's tru for next version github.com/LimeSurvey/LimeSurvey/commit/...8d4dea6671011fb5ad9c

I think but didn't check in 2.73, but i think it's true :)

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: kogger
The topic has been locked.
  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
4 years 7 months ago #188850 by tpartner
Replied by tpartner on topic Using EM Variable in the Assesment rules page
I'm just pointing out that Expression Manager is far more flexible than assessments.

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: DenisChenu
The topic has been locked.
  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
4 years 7 months ago #188854 by DenisChenu
Replied by DenisChenu on topic Using EM Variable in the Assesment rules page

tpartner wrote: I'm just pointing out that Expression Manager is far more flexible than assessments.

Right :)

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.
  • kogger
  • kogger's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
4 years 7 months ago #188863 by kogger
Thank you for your answer.

Would you have a good example of this that I could look at? I've not seen any specific examples of using EM for assessments and how you create a custom results page.

I did find a workaround by using some javascript in the assessment rules but I'm curious if using EM would give me more flexibility.
The topic has been locked.
  • holch
  • holch's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
4 years 7 months ago #188872 by holch
Example: you can use all assessment values via questioncode.value, etc. and thus can calculate your own values in equation questions. It gives you a lot more flexibility.

I answer at the LimeSurvey forum in my spare time, I'm not a LimeSurvey GmbH employee.
No support via private message.

The topic has been locked.
  • kogger
  • kogger's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
4 years 7 months ago #188913 by kogger
Hmmm technically, that's not an example. I was wondering if there is an .lss I could load up to see how it all comes together. I,ve seen some for other use cases, just nothing for this one particularly. It would help a bunch.

But perhaps there isn't one?
The topic has been locked.
  • holch
  • holch's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
4 years 7 months ago - 4 years 7 months ago #188917 by holch
These links should help to get you an good idea of how Expression Manager works. Once you know what Expression Manager is, you will be able to 'unlock' the flexibility it gives you to create your own assessments.
manual.limesurvey.org/Expression_Manager_-_quick_start_guide
manual.limesurvey.org/Expression_Manager_how-tos
manual.limesurvey.org/Expression_Manager_examples

Here you will also find a link to a LSS file that provides examples about Assessments:
manual.limesurvey.org/Expression_Manager..._Assessment_Examples

But the best way to learn is to play around and create your own example and what you want to do. When you run into problems, then put your LSS here and I am sure people are more than happy to help you to overcome your difficulties.

I answer at the LimeSurvey forum in my spare time, I'm not a LimeSurvey GmbH employee.
No support via private message.

Last edit: 4 years 7 months ago by holch.
The following user(s) said Thank You: kogger
The topic has been locked.
  • Joffm
  • Joffm's Avatar
  • Away
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
4 years 7 months ago #188919 by Joffm
Not to forget the sample surveys

manual.limesurvey.org/Expression_Manager_sample_surveys

which are included in the demo installation, too.

Joffm

Volunteers are not paid.
Not because they are worthless, but because they are priceless
The following user(s) said Thank You: kogger
The topic has been locked.
  • kogger
  • kogger's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
4 years 7 months ago - 4 years 7 months ago #188921 by kogger
This is great! Thank you!
Last edit: 4 years 7 months ago by kogger.
The topic has been locked.

Lime-years ahead

Online-surveys for every purse and purpose