Welcome to the LimeSurvey Community Forum

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

Save assessment

  • r4f4s0hz
  • r4f4s0hz's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
4 years 5 months ago #190826 by r4f4s0hz
Save assessment was created by r4f4s0hz
Hi good day to all, i need your help to solve one question, i make one survey where the user select


Siempre, Casi siempre,Algunas veces, Casi Nunca, Nunca
1 2 3 4 5


And activate assessment to have score and more, but searching how can save the score final in my survey, i found some topic but i can't save the info in my db.


First Try:
1.- Make one Question Equational
2.- Add the next Source in Response {ASSESSMENTS_CURRENT_TOTAL}
3.- Hide in css with hidden and put in final question
4.- Don´t work and show me undefined variable

Second try:
1.- Make question Equational
2.- Add the next code ASSESSMENTS_CURRENT_TOTAL in equational
3.- Hide in css with hidden and put in Final
4.- Works but don't show nothing in bd

Third Try:
1.- Make Equational question
2.- Add the next source in equational if(ASSESSMENTS_CURRENT_TOTAL >=0, "Nulo", ASSESSMENTS_CURRENT_TOTAL >=20, "Bajo")
3.- Don't save in bd

Any can explain how can add the final score in my bd please, i try more option and nothing works :'(
The topic has been locked.
More
4 years 5 months ago #190827 by jelo
Replied by jelo on topic Save assessment

r4f4s0hz wrote: {ASSESSMENTS_CURRENT_TOTAL}

4.- Don´t work and show me undefined variable


The variable name is {ASSESSMENT_CURRENT_TOTAL}. You have an S too much.

This placeholder can be used within a survey to display the current total score. Keep in mind that the score is only updated when the respondent clicks on the "Next" button. Therefore, it is useless in an all-in-one survey. Also, its use requires the existence of at least one assessment rule. Otherwise, the placeholder will not display any value.

The meaning of the word "stable" for users
www.limesurvey.org/forum/development/117...ord-stable-for-users
The topic has been locked.
  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
4 years 5 months ago #190832 by tpartner
Replied by tpartner on topic Save assessment
Note that the word ASSESSMENT should be all uppercase (the forum software is converting it to lowercase).

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.

Lime-years ahead

Online-surveys for every purse and purpose