Welcome to the LimeSurvey Community Forum

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

Direct Feedback to survey participants

  • tiflis
  • tiflis's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
5 years 2 months ago #179429 by tiflis
Hey guys!

I've created a (not yet activated) survey that mostly contains multi-choice design questions. I have been instructed to include a short sentence such as "You have answered this incorrectly (or correctly)" for every possible answer. These short `feedback phrases` should be visible to the survey participant after completing the survey. In addition, it should also be displayed at the end of the survey, which answers are correct (per question), and which are wrong. There should also be an explanatory text per question. The whole thing should look something like this:

Example question xyz

correct is
... abc "You chose this answer incorrectly."
... abc "You have chosen the correct answer."

wrong is
... xyz "You chose this answer incorrectly."

explanation
... xyz


How can this be done in LimeSurvey?
(Please note that I have never had to program before, I'm currently getting into javascript and trying to learn the basics).

I am using:

Windows 7 Professional (and Windows 10 Home)
Mozilla Firefox Quantum 64.0.2
LimeSurvey Version 3.15.5+181115

Thank you in advance!
The topic has been locked.
  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
5 years 2 months ago #179432 by DenisChenu
Replied by DenisChenu on topic Direct Feedback to survey participants
The solution is usage of manual.limesurvey.org/Expression_Manager

It take time, but no need to know javascript (is more near than Calc Formula)

Quick sample, if in question Q01, the good answer (for a multiple) is SQ1 and SQ3 (and not SQ2 and SQ4)
Code:
... abc {if(Q01_SQ1.NAOK == "Y" and Q01_SQ2.NAOK == "" and Q01_SQ3.NAOK == "Y" and Q01_SQ4.NAOK == ""),"You have chosen the correct answer.","You chose this answer incorrectly.")}

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: tiflis
The topic has been locked.
  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
5 years 2 months ago #179433 by tpartner
Replied by tpartner on topic Direct Feedback to survey participants
A note on Expression Manager IF() statements (which confuse many people)...

The syntax is:

Code:
if(condition, 'Returned if true', 'Returned if false')

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, tiflis
The topic has been locked.
  • tiflis
  • tiflis's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
5 years 2 months ago #179439 by tiflis
Replied by tiflis on topic Direct Feedback to survey participants
I will try to implement those and change them to how i want it, thanksalot to both of you!
The topic has been locked.
  • tiflis
  • tiflis's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
5 years 2 months ago #179507 by tiflis
Replied by tiflis on topic Direct Feedback to survey participants
Hi!

I tried that syntax and it doesn´t seem to work, is the last bracket (before the curly bracket) unnecessary ?
The topic has been locked.
  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
5 years 2 months ago #179510 by DenisChenu
Replied by DenisChenu on topic Direct Feedback to survey participants
Yes right,

Made an typo
Code:
... abc {if(Q01_SQ1.NAOK == "Y" and Q01_SQ2.NAOK == "" and Q01_SQ3.NAOK == "Y" and Q01_SQ4.NAOK == "","You have chosen the correct answer.","You chose this answer incorrectly.")}

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: tiflis
The topic has been locked.

Lime-years ahead

Online-surveys for every purse and purpose