- Posts: 4
- Thank you received: 0
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
- Topic Author
- Offline
- New Member
Less
More
4 years 7 months ago #188833
by kogger
Using EM Variable in the Assesment rules page was created 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...
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
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 10108
- Thank you received: 3593
4 years 7 months ago #188845
by tpartner
Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
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
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 13643
- Thank you received: 2491
4 years 7 months ago #188849
by DenisChenu
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.
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
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 10108
- Thank you received: 3593
4 years 7 months ago #188850
by tpartner
Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
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
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 13643
- Thank you received: 2491
4 years 7 months ago #188854
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 Using EM Variable in the Assesment rules page
Righttpartner wrote: I'm just pointing out that Expression Manager is far more flexible than assessments.
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
- Topic Author
- Offline
- New Member
Less
More
- Posts: 4
- Thank you received: 0
4 years 7 months ago #188863
by kogger
Replied by kogger on topic Using EM Variable in the Assesment rules page
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.
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
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 11656
- Thank you received: 2742
4 years 7 months ago #188872
by holch
I answer at the LimeSurvey forum in my spare time, I'm not a LimeSurvey GmbH employee.
No support via private message.
Replied by holch on topic Using EM Variable in the Assesment rules page
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
- Topic Author
- Offline
- New Member
Less
More
- Posts: 4
- Thank you received: 0
4 years 7 months ago #188913
by kogger
Replied by kogger on topic Using EM Variable in the Assesment rules page
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?
But perhaps there isn't one?
The topic has been locked.
- holch
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 11656
- Thank you received: 2742
4 years 7 months ago - 4 years 7 months ago #188917
by holch
I answer at the LimeSurvey forum in my spare time, I'm not a LimeSurvey GmbH employee.
No support via private message.
Replied by holch on topic Using EM Variable in the Assesment rules page
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.
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
- Away
- LimeSurvey Community Team
Less
More
- Posts: 12922
- Thank you received: 3977
4 years 7 months ago #188919
by Joffm
Volunteers are not paid.
Not because they are worthless, but because they are priceless
Replied by Joffm on topic Using EM Variable in the Assesment rules page
Not to forget the sample surveys
manual.limesurvey.org/Expression_Manager_sample_surveys
which are included in the demo installation, too.
Joffm
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
- Topic Author
- Offline
- New Member
Less
More
- Posts: 4
- Thank you received: 0
4 years 7 months ago - 4 years 7 months ago #188921
by kogger
Replied by kogger on topic Using EM Variable in the Assesment rules page
This is great! Thank you!
Last edit: 4 years 7 months ago by kogger.
The topic has been locked.