Total assessment and relevance equation

More
5 years 4 months ago #73926 by giankuka
giankuka created the topic: Total assessment and relevance equation
I'm not able tio find a solution in this forum, there are similar issues but I'm going to be crazy to find how to do, please help me! :)
The first group of my survey has five questions and any questions of this group have an "assessment value" (20, 10, 5);
I would like go to the end of the survey if the sum of the assessment value for this group is more than 100; else the survey can continue with other groups. Is it possible?
I think I have to put in the field "Relevance equation" of the second group something,but what exactly?
Thank you for your help

Please Log in to join the conversation.

More
5 years 4 months ago #73948 by DenisChenu
DenisChenu replied the topic: Total assessment and relevance equation
Hello,

I think you have to use some javascript to fill a hidden ( with css or javascript) question on a next page ( use {assessment_CURRENT_TOTAL} place holder to get the current total ).

And do your condition ( or the quota ) with this answer.

Denis

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand (or search sondages pro).
An error happen ? Before make a new topic : remind the Debug mode .

Please Log in to join the conversation.

More
5 years 4 months ago #73953 by Mazi
Mazi replied the topic: Total assessment and relevance equation
Please attach your survey so our experts can have a look.

To me the best approach seems to be to use the equation question type to store the assessment total value at such a question and then use conditions based on the value of that question to show/hide following questions. You can copy conditions to following questions which then works like a "Go to the end of the survey if question X was answered Y".


Best regards/Beste Grüße,
Dr. Marcel Minke
(Limesurvey Head of Support)
Need Help? We offer professional Limesurvey support
Contact: marcel.minke(at)survey-consulting.com'"

Please Log in to join the conversation.

More
5 years 4 months ago #73974 by giankuka
giankuka replied the topic: Total assessment and relevance equation
I used a equation question type (question X) putting into it this: {assessment_CURRENT_TOTAL}; but this value is not an answer for the system. So when I use a condition for the next question (not show the question Y if the question X is equal to a value) it doesn't work. I attach my test survey.
Thanks

File Attachment:

File Name: limesurvey...1387.lss
File Size:78 KB
Attachments:

Please Log in to join the conversation.

More
5 years 4 months ago #73982 by giankuka
giankuka replied the topic: Total assessment and relevance equation

giankuka wrote: I used a equation question type (question X) putting into it this: {assessment_CURRENT_TOTAL}; but this value is not an answer for the system. So when I use a condition for the next question (not show the question Y if the question X is equal to a value) it doesn't work. I attach my test survey.
Thanks

File Attachment:

File Name: limesurvey...1387.lss
File Size:78 KB


I have 1.92 RC3 Build 12204 Version

Please Log in to join the conversation.

More
5 years 4 months ago #73997 by Mazi
Mazi replied the topic: Total assessment and relevance equation
You need to create an according "expression" using the Expression Manager which wil then store the value at this question, see docs.limesurvey.org/Expression+Manager+H...s_in_the_survey_data


Best regards/Beste Grüße,
Dr. Marcel Minke
(Limesurvey Head of Support)
Need Help? We offer professional Limesurvey support
Contact: marcel.minke(at)survey-consulting.com'"

Please Log in to join the conversation.

More
5 years 4 months ago - 5 years 4 months ago #74003 by Steve01
Steve01 replied the topic: Total assessment and relevance equation
Hello,

you can use the sum() function to sum up the assessment values. The assessment values can be used with Qcode.valueNAOK. So you can add a question level Relevance equation like
{sum(Ospitalita.valueNAOK, Condiz_complessive.valueNAOK) > 100}
But I think it would be a good idea to use shorter and valid question codes. You can use the QA button to see an overview page for your survey logic. "Qualità/prezzo" for example doesn't match the criteria for a valid question code.

Mit freundlichen Grüßen/Best regards,

Stefan Gohlke
LimeSurvey Team
Last Edit: 5 years 4 months ago by Steve01.

Please Log in to join the conversation.

More
5 years 4 months ago #74024 by giankuka
giankuka replied the topic: Total assessment and relevance equation
Thanks!!! It works!

Please Log in to join the conversation.

More
5 years 4 months ago #74025 by Steve01
Steve01 replied the topic: Total assessment and relevance equation
You're welcome :-)

If our hints have been helpful and you enjoy limesurvey please consider a donation to the team .
We do all this in our free time and you don't have to pay a penny for this software.

Without your help we can't keep this project alive.

Mit freundlichen Grüßen/Best regards,

Stefan Gohlke
LimeSurvey Team

Please Log in to join the conversation.

Start now!

Just create your account and start using Limesurvey today.

Register now