- Posts: 2
- Thank you received: 0
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
- Topic Author
- Offline
- New Member
Less
More
5 years 1 month ago #180716
by pharango
Can I use EM somehow to export questions with a correct or wrong answer? was created 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?
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?
Attachments:
The topic has been locked.
- tpartner
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 10634
- Thank you received: 3698
5 years 1 month ago - 5 years 1 month ago #180723
by tpartner
Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
Replied by tpartner on topic Can I use EM somehow to export questions with a correct or wrong answer?
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
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 13935
- Thank you received: 2551
5 years 1 month ago #180729
by DenisChenu
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.
Replied by DenisChenu on topic Can I use EM somehow to export questions with a correct or wrong answer?
@tparner : The equation value must be set, no ?
In export (pdf) we must see something like this
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
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 10634
- Thank you received: 3698
5 years 1 month ago #180731
by tpartner
Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
Replied by tpartner on topic Can I use EM somehow to export questions with a correct or wrong answer?
@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
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 13935
- Thank you received: 2551
5 years 1 month ago - 5 years 1 month ago #180736
by DenisChenu
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.
Replied by DenisChenu on topic Can I use EM somehow to export questions with a correct or wrong answer?
OK
@pharango : did value is set in database ? Did value is shown when exporting as CSV ?
And : LS version and build number
@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
- Topic Author
- Offline
- New Member
Less
More
- Posts: 2
- Thank you received: 0
5 years 1 month ago #180756
by pharango
Replied by pharango on topic Can I use EM somehow to export questions with a correct or wrong answer?
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?
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
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 13935
- Thank you received: 2551
5 years 1 month ago #180787
by DenisChenu
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.
Replied by DenisChenu on topic Can I use EM somehow to export questions with a correct or wrong answer?
Seems there are an issue in your survey (or in LimeSurvey)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?
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.