View Issue Details

This issue affects 1 person(s).
 10
IDProjectCategoryView StatusLast Update
08850Feature requestsPluginspublic2026-11-20 10:49
Reportermfaber Assigned To 
PrioritynormalSeverity@50@ 
Status acknowledgedResolutionopen 
Summary08850: Plugin idea: Merge different question types
Description

TPartner is famous worldwide for his great js tricks which facilitate the combination of two or more questions of different types into one question. ;)
For example combining a matrix question and a multiple short text question in a way so you get a matrix question with a comment field on every row.
See eg. www.limesurvey.org/en/forum/design-issue...ifiy?start=100#94472

I'd like to try to create a plugin that looks at the question (or help) text of questions in the survey. Whenever theres a tag similar to ##MERGE#QNUM1#QNUM2## the plugin creates the appropriate JS code to merge these two questions.

Of course different JS code would be needed for combinations of different question type. I would start with just a few and extend little by little.

Additional Information

Before I invest too much time, I'd like to ask your opinion:

@mdekker: is this in principle possible with the plugin system (which hook can I use)?

@tpartner: I'd like to harvest the forum and build on your JS work, would that be ok for you? Of course, you'll be credited in the source code. Or maybe you're interested to contribute to the plugin directly and we'll make this a co-production. Could be cool!

Looking forward to hear your opinion on this!

TagsNo tags attached.
Bug heat10
Git branch / Pull Request URL

Users monitoring this issue

mdekker, tpartner

Activities

tpartner

tpartner

2014-03-13 17:08

partner   ~29246

Yeah, cool idea. I do it now with custom jQuery plugins.

Yes, of course, use whatever you would like and feel free to ask for clarification on anything you need.

Bear in mind that many of the forum solutions are quickly done so may need a little cleaning up.

DenisChenu

DenisChenu

2014-03-17 16:43

developer   ~29297

Hi @mfaber : all Question and Question attribute system are rewritten in 6 month (or more), then I think doing it now is a bad idea, because you have to 'redo' whole again and again.

I have some 'Add this script to your template, and add this to your question (selectFilter({QID}) => this one can be easily done in attribute , but don't want to redo it again in 2.06/2.07/2.08 .....

Denis

mfaber

mfaber

2014-03-17 22:39

reporter   ~29307

Thanks for the warning, Denis...will then probably just wait a while...

Rewriting the whole question system (qandahelper?) will be a massive undertaking... is this the "question-to-objects" plan?

DenisChenu

DenisChenu

2014-03-18 08:36

developer   ~29318

Yes : 2.1 : no question and question attribute in qanda_helper.

All are/must be in Plugin : Question attribute plugin and Question plugin.

Think we have a lot of debug ...

Issue History

Date Modified Username Field Change
2014-03-13 16:50 mfaber New Issue
2014-03-13 16:51 mfaber Additional Information Updated
2014-03-13 16:51 mfaber Issue Monitored: mdekker
2014-03-13 16:51 mfaber Issue Monitored: tpartner
2014-03-13 17:08 tpartner Note Added: 29246
2014-03-17 16:43 DenisChenu Note Added: 29297
2014-03-17 22:39 mfaber Note Added: 29307
2014-03-18 08:36 DenisChenu Note Added: 29318
2026-11-19 22:50 c_schmitz Status new => acknowledged
2026-11-20 10:49 c_schmitz Project Bug reports => Feature requests