Using EM Variable in the Assesment rules page

More
1 month 2 days 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...

Please Log in or Create an account to join the conversation.

LimeSurvey Partners
More
1 month 1 day ago #188845 by tpartner
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.
Official LimeSurvey Partner - partnersurveys.com
The following user(s) said Thank You: kogger

Please Log in or Create an account to join the conversation.

More
1 month 1 day ago #188849 by DenisChenu

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 .
An error happen ? Before make a new topic : remind the Debug mode .
The following user(s) said Thank You: kogger

Please Log in or Create an account to join the conversation.

More
1 month 1 day ago #188850 by tpartner
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.
Official LimeSurvey Partner - partnersurveys.com
The following user(s) said Thank You: DenisChenu

Please Log in or Create an account to join the conversation.

More
1 month 1 day ago #188854 by DenisChenu

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 .
An error happen ? Before make a new topic : remind the Debug mode .

Please Log in or Create an account to join the conversation.

More
1 month 1 day 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.

Please Log in or Create an account to join the conversation.

More
1 month 1 day 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'm not a LimeSurvey GmbH member. I answer at the LimeSurvey forum in my spare time. No support via private message.
Some helpful links: Manual (EN) | Question Types | Workarounds

Please Log in or Create an account to join the conversation.

More
1 month 13 hours 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?

Please Log in or Create an account to join the conversation.

More
1 month 12 hours ago - 1 month 12 hours 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'm not a LimeSurvey GmbH member. I answer at the LimeSurvey forum in my spare time. No support via private message.
Some helpful links: Manual (EN) | Question Types | Workarounds
Last edit: 1 month 12 hours ago by holch.
The following user(s) said Thank You: kogger

Please Log in or Create an account to join the conversation.

More
1 month 12 hours ago #188919 by Joffm
Not to forget the sample surveys

https://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

Please Log in or Create an account to join the conversation.

More
1 month 11 hours ago - 1 month 11 hours ago #188921 by kogger
This is great! Thank you!
Last edit: 1 month 11 hours ago by kogger.

Please Log in or Create an account to join the conversation.

Start now!

Just create your account and start using Limesurvey today.

Register now
Join our Newsletter!