Welcome to the LimeSurvey Community Forum

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

Can I use EM somehow to export questions with a correct or wrong answer?

  • pharango
  • pharango's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
5 years 1 month ago #180716 by pharango
Hello! I'm really new to this. Need help or a point of direction.

I'm trying to export (a PDF) with questions and and answers and I use the ASSESSMENT_CURRENT_TOTAL in a hidden question that gives me the total score of the assessment. Thats great!

But I would also like to get a "You answer is right" or "Your answer is wrong" on each question in the export (not showing the user during the assessment - only in the export). Is that possible?

I have tried adding a "hidden" Equation question after each real question. With something like :
Your answer is : {if(Q3==A1,"Right","Wrong")}

This only gives me the above expression/code in the export and not the text. See the small screenshot (the line is blank).

How would I go about doing this?

Oh. And none of the variables in EM(Expression Manager) seems to work for me. If I just enter {Q3} I also only get that code in the export and not the Question itself. Am I using it wrong?
The topic has been locked.
  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
5 years 1 month ago - 5 years 1 month ago #180723 by tpartner
As far as I know, it's normal behaviour for Expression Manager piped text values not to be stored in the database questions table and therefore not available for exporting as PDF.

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
Last edit: 5 years 1 month ago by tpartner.
The topic has been locked.
  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
5 years 1 month ago #180729 by DenisChenu
@tparner : The equation value must be set, no ?

In export (pdf) we must see something like this

Q12 : {if(Q3==A1,"Right","Wrong")}
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 .
I don't answer to private message.
The topic has been locked.
  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
5 years 1 month ago #180731 by tpartner
@DenisChenu, yes, I have clarified my post.

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The topic has been locked.
  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
5 years 1 month ago - 5 years 1 month ago #180736 by DenisChenu
OK :)

@pharango : did value is set in database ? Did value is shown when exporting as CSV ?

And : LS version and build number

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.
Last edit: 5 years 1 month ago by DenisChenu.
The topic has been locked.
  • pharango
  • pharango's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
5 years 1 month ago #180756 by pharango
Thanks guys for your replies! :-)

Sorry : the LS version is 3.15.9.

If I export as CSV, I only get a "blank" and no value.

Do I have any options to achieve something similar to what I want to do?
The topic has been locked.
  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
5 years 1 month ago #180787 by DenisChenu

pharango wrote: Thanks guys for your replies! :-)

Sorry : the LS version is 3.15.9.

If I export as CSV, I only get a "blank" and no value.

Do I have any options to achieve something similar to what I want to do?

Seems there are an issue in your survey (or in LimeSurvey)

Please : send a simple survey (lss file) showing the issue

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.

Lime-years ahead

Online-surveys for every purse and purpose