View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
17477 | Bug reports | Expression Manager | public | 2021-07-26 16:25 | 2022-04-06 08:18 |
Reporter | tammo | Assigned To | DenisChenu | ||
Priority | low | Severity | feature | ||
Status | closed | Resolution | fixed | ||
Product Version | 3.25.19 | ||||
Target Version | 5.0.0dev | Fixed in Version | 5.x | ||
Summary | 17477: Make it possible to use answer option text in expression script. | ||||
Description | Somehow this feature request was deleted, so I enter it again. Use case: setting up a quiz. In an evaluation afterwards I would like to show:
And when the answer given by the user was wrong I want to show what the correct answer was. Something like: {if(q01!="C", "The correct answer is" q01_C.text, "")} But currently there is no way to get the text of an answer option (or subquestion) using expression script. | ||||
Tags | No tags attached. | ||||
Bug heat | 14 | ||||
Complete LimeSurvey version number (& build) | Version 3.27.7+210713 | ||||
I will donate to the project if issue is resolved | No | ||||
Browser | |||||
Database type & version | MySQL | ||||
Server OS (if known) | |||||
Webserver software & version (if known) | |||||
PHP Version | 7.3 | ||||
upvote |
|
+1 |
|
subquestion text => .question MULTI_SQ01.question show the text of SQ01 |
|
OK, only answer option then? |
|
Question_Subquestion.question are already in 3.X. Unsure what happen for array/text and array/number I think i already another feature request for 5.X Question text of "Multiple choice question" : https://github.com/LimeSurvey/LimeSurvey/tree/master/application/core/plugins/expressionQuestionForAll Here : can be lcearly done with plugin but unsure on the code … |
|
|
|
@denis how much time would it cost you to program this? |
|
@tammo : unsure : i need a good way to have the current aswer … QCode.answers_C1shown : give the answer text of Qcode with C1 code ? Not the best maybe … |
|
@tammo : why not use a fuinction answerTextByCode(QCODE,"C1") ? or answerTextByCode(QCODE_SQCODE,"C1") |
|
Why not use... Because I have never heard of this code. Can I use this in Expression code? |
|
By the way: I am not looking for the chosen answer, but for the answer that has code "C" (for correct answer) |
|
No : i mean why not create a expression manager function :)
yes : answerTextByCode(QCODE,"C") or answerTextByCode(QCODE_SQCODE,"C") (for array question type) |
|
I do not know how to create Expression Script code. I asked if you could help me on that. How much time would it cost you to program this? |
|
My question : are you OK with such a solution : answerTextByCode(QCODE,"C") ? Create a new function in a core plugin + a test : 1 day work. |
|
I would like you to develop this, yes, please send me a quote for how much money this would cost me. Condition: answerTextByCode(QCODE,"C") must be usable as Expression Script. |
|
@tammo, this can be really useful for creating more generic quizzes. Are you planning to provide this plugin to the community? We are currently working on a different approach for a "Limesurvey quiz generator":
Additional question items can be added by clicking [+]. Once all question details are defined, the plugin will generate the related Limesurvey survey automatically. The user can take the survey and at the end will be presented an overview with all questions. At that overview his/her questions will be marked as well as the correct answers. We will also calculate a score like the percentage of correct answers. |
|
I only want to develop this (or have this developed by a good coder) for open source. This what I developed based on current software. The feature I asked here is very much wanted. https://research.respondage.com/index.php/365639?newtest=Y&lang=nl-informal Denis made an offer. I would be glad to share the costs. |
|
Well, currently we do not need the feature you outlined for any projects. What Limesurvey version are you developing this for? Will it support 3.x and 5.x? The tool I described is not coded yet. We are currently looking for other customers with a similar demand. |
|
5.X only. |
|
NOT RELATED :
Warning with autoclic : i start,
|
|
NOT RELATED : |
|
Maybe show button without JS only ? |
|
You mean, that when JS autoclick is activated, it also hides the next button? |
|
No : i mean IF auto click work : seem better to hide Next button (except if you allow no answer ?) |
|
@galads : i create a function in a plugin (Thanks to https://www.respondage.nl/ for sponsoring). After : we can add it on core plugin : start by scale_id == 0 and with answers in DB. By qid or question code |
|
Thanks, @DenisChenu and https://www.respondage.nl/ , we can add it to the develop branch? |
|
It's the option
|
|
5.X plugin https://gitlab.com/SondagesPro/ExpressionManager/ExpressionAnswerOptionsExt |
|
Pull request for develop version. |
|
https://github.com/LimeSurvey/LimeSurvey/pull/2155 @galads : can you set it at "To be tested" in zoho please ? |
|
Date Modified | Username | Field | Change |
---|---|---|---|
2021-07-26 16:25 | tammo | New Issue | |
2021-07-26 16:26 | ritapas | Note Added: 65637 | |
2021-07-26 16:28 | tpartner | Note Added: 65638 | |
2021-07-26 16:57 | DenisChenu | Note Added: 65639 | |
2021-07-26 17:54 | tammo | Note Added: 65640 | |
2021-07-26 18:11 | DenisChenu | Note Added: 65641 | |
2021-07-27 11:51 | DenisChenu | Note Added: 65644 | |
2021-07-29 08:38 | galads | Assigned To | => galads |
2021-07-29 08:38 | galads | Status | new => acknowledged |
2021-07-29 10:07 | galads | Priority | none => low |
2021-07-29 10:07 | galads | Severity | minor => feature |
2021-07-29 10:07 | galads | Sync to Zoho Project | => |Yes| |
2021-08-13 15:10 | galads | Status | acknowledged => confirmed |
2021-11-14 12:06 | tammo | Note Added: 67284 | |
2021-11-14 12:16 | DenisChenu | Note Added: 67285 | |
2021-11-14 12:17 | DenisChenu | Note Added: 67286 | |
2021-11-14 12:17 | DenisChenu | Note Edited: 67286 | |
2021-11-14 12:39 | tammo | Note Added: 67288 | |
2021-11-14 12:40 | tammo | Note Added: 67289 | |
2021-11-15 08:10 | DenisChenu | Note Added: 67292 | |
2021-11-15 08:34 | DenisChenu | Summary | Make it possible to use answer option text and subquestion text in expression script. => Make it possible to use answer option text in expression script. |
2021-11-15 08:34 | DenisChenu | Zoho Project Synchronization | Yes => |Yes| |
2021-11-15 09:38 | tammo | Note Added: 67322 | |
2021-11-15 11:31 | DenisChenu | Note Added: 67324 | |
2021-11-15 11:46 | tammo | Note Added: 67326 | |
2021-11-16 14:14 | DenisChenu | Issue Monitored: DenisChenu | |
2021-11-16 14:14 | DenisChenu | Bug heat | 8 => 10 |
2021-11-17 09:58 | Mazi | Note Added: 67385 | |
2021-11-17 09:58 | Mazi | Bug heat | 10 => 12 |
2021-11-17 10:07 | tammo | Note Added: 67388 | |
2021-11-17 10:12 | Mazi | Note Added: 67389 | |
2021-11-17 10:19 | DenisChenu | Note Added: 67391 | |
2021-11-17 10:21 | DenisChenu | Note Added: 67392 | |
2021-11-17 10:24 | tammo | Note Added: 67393 | |
2021-11-17 10:42 | DenisChenu | Note Added: 67394 | |
2021-11-17 10:53 | tammo | Note Added: 67395 | |
2021-11-17 11:29 | DenisChenu | Note Added: 67396 | |
2021-11-17 11:29 | DenisChenu | File Added: Peek 17-11-2021 11-28.gif | |
2021-11-18 15:41 | DenisChenu | Assigned To | galads => DenisChenu |
2021-11-18 15:45 | DenisChenu | Note Added: 67433 | |
2021-11-18 15:45 | DenisChenu | Status | confirmed => assigned |
2021-11-18 15:45 | DenisChenu | Target Version | 3.x => 5.0.0dev |
2021-11-18 15:45 | DenisChenu | Zoho Project Synchronization | Yes => |Yes| |
2021-11-18 15:53 | galads | Note Added: 67434 | |
2021-11-18 15:53 | galads | Bug heat | 12 => 14 |
2021-11-18 16:00 | DenisChenu | Note Added: 67436 | |
2021-11-18 16:02 | galads | Status | assigned => new |
2021-11-18 16:02 | galads | Assigned To | DenisChenu => galads |
2021-11-18 16:02 | galads | Status | new => confirmed |
2021-11-18 16:02 | galads | Status | confirmed => assigned |
2021-11-23 14:25 | DenisChenu | Assigned To | galads => DenisChenu |
2021-11-23 14:36 | DenisChenu | Note Added: 67509 | |
2021-11-24 16:36 | DenisChenu | Note Added: 67540 | |
2021-11-24 16:37 | DenisChenu | Note Added: 67541 | |
2021-11-24 16:37 | DenisChenu | Assigned To | DenisChenu => galads |
2021-11-24 16:37 | DenisChenu | Status | assigned => ready for testing |
2022-04-06 08:18 | DenisChenu | Assigned To | galads => DenisChenu |
2022-04-06 08:18 | DenisChenu | Status | ready for testing => closed |
2022-04-06 08:18 | DenisChenu | Resolution | open => fixed |
2022-04-06 08:18 | DenisChenu | Fixed in Version | => 5.x |
2022-04-06 08:18 | DenisChenu | Note Added: 68911 |