Check out the LimeSurvey source code on GitHub!
Welcome, Guest
Username: Password:
  • Page:
  • 1
  • 2

TOPIC: Exclusive options for Multiple choice not working?

Exclusive options for Multiple choice not working? 4 years 4 months ago #78566

  • holch
  • holch's Avatar
  • Offline
  • LimeSurvey Team
  • Posts: 5097
  • Thank you received: 756
  • Karma: 227
weird: with default theme and another question it doesn't work either. Will try the cache again.
Have a look at the manual! It is a really valuable source for information. Here some helpful links:
Manual (EN) | Question Types | Question Attributes | Workarounds

If you found this answer helpful and it saved you some time please consider a donation to the project to keep Limesurvey going!
The administrator has disabled public write access.

Exclusive options for Multiple choice not working? 4 years 4 months ago #78567

  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • Moderator Lime
  • Posts: 9305
  • Thank you received: 1330
  • Karma: 386
TMSWhite wrote:
Denis-

Exclusive option does accurately hide questions already (using relevance criteria). Refactoring would be needed if we wanted to disable them but not hide them. I tried a simple change of having relevance always disable questions instead of hide them, but that looks awful (e.g. array-filtered rows would still appear, but be disabled). So, disabling questions for exclusive option would require pulling it out of the internal relevance criteria and create a different set of logic for it.
Yep,

It's why i say hide the input and not deactiavte it.

Maybe a solution is
replace all hide() in LimeExpressionManager.php by
lshide({$arg})

And add in survey_runtime:
jQuery.fn.lshide = function(qid) {
    $(this).hide();
};
jQuery.fn.lsshow = function(qid) {
    $(this).show();
};
After we can do some test on qid class:
jQuery.fn.lshide = function(qid) {
if ($("#question"+qid).hasClass('multiple-opt')){
    $(this)find('input').hide();
}else{
    $(this).hide();
}
};

I made a quick test with:
jQuery.fn.lshide = function(qid) {
    $(this).find('input').hide();
};
jQuery.fn.lsshow = function(qid) {
    $(this).find('input').show();
};
Here: limesurvey.sondages.pro/36161/lang-en
It work like a charm.

I didn't make something for group, but we still use something like this.

Denis
Assistance on LimeSurvey forum and LimeSurvey core developpement are on my free time (Say thanks ?).
A bug not reported is a bug not corrected. | Please, read the documentation | La doc en français à besoin de vous
The administrator has disabled public write access.

Exclusive options for Multiple choice not working? 4 years 4 months ago #78568

  • TMSWhite
  • TMSWhite's Avatar
  • Offline
  • LimeSurvey Team
  • Posts: 758
  • Thank you received: 83
  • Karma: 37
There was a standard set of EM-related CSS added to to all templates. I believe Citronade's version of those additions were refactored in an effort to simplify/reduce the EM-related CSS. Try replacing the Citronate-version of EM CSS with that from the default template and see if that fixes it for you.
The administrator has disabled public write access.

Exclusive options for Multiple choice not working? 4 years 4 months ago #78569

  • holch
  • holch's Avatar
  • Offline
  • LimeSurvey Team
  • Posts: 5097
  • Thank you received: 756
  • Karma: 227
I just tried with another question following this one (codes seem to be fine, looked in the logik file) but it just doesn't do anything (default theme, cache cleared, etc.).
Have a look at the manual! It is a really valuable source for information. Here some helpful links:
Manual (EN) | Question Types | Question Attributes | Workarounds

If you found this answer helpful and it saved you some time please consider a donation to the project to keep Limesurvey going!
The administrator has disabled public write access.

Exclusive options for Multiple choice not working? 4 years 4 months ago #78570

  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • Moderator Lime
  • Posts: 9305
  • Thank you received: 1330
  • Karma: 386
I test with actual citronade,

No problem it work like a charm.

Can you export your survey ?

Denis
Assistance on LimeSurvey forum and LimeSurvey core developpement are on my free time (Say thanks ?).
A bug not reported is a bug not corrected. | Please, read the documentation | La doc en français à besoin de vous
The administrator has disabled public write access.

Exclusive options for Multiple choice not working? 4 years 4 months ago #78572

  • TMSWhite
  • TMSWhite's Avatar
  • Offline
  • LimeSurvey Team
  • Posts: 758
  • Thank you received: 83
  • Karma: 37
Denis-

That's an interesting strategy. That would let authors customize individual questions, especially if those functions could be overloaded within template.js
The administrator has disabled public write access.

Exclusive options for Multiple choice not working? 4 years 4 months ago #78579

  • holch
  • holch's Avatar
  • Offline
  • LimeSurvey Team
  • Posts: 5097
  • Thank you received: 756
  • Karma: 227
Hi Dennis!

I wouldn't want to publish the survey here.

Additionally, the thing doesn't work for some questions with the default template either. don't know what is wrong. It has worked, and now it doesn. Weird.
Have a look at the manual! It is a really valuable source for information. Here some helpful links:
Manual (EN) | Question Types | Question Attributes | Workarounds

If you found this answer helpful and it saved you some time please consider a donation to the project to keep Limesurvey going!
The administrator has disabled public write access.

Exclusive options for Multiple choice not working? 4 years 4 months ago #78580

  • TMSWhite
  • TMSWhite's Avatar
  • Offline
  • LimeSurvey Team
  • Posts: 758
  • Thank you received: 83
  • Karma: 37
holch - does show survey logic show any errors?
The administrator has disabled public write access.

Exclusive options for Multiple choice not working? 4 years 4 months ago #78581

  • holch
  • holch's Avatar
  • Offline
  • LimeSurvey Team
  • Posts: 5097
  • Thank you received: 756
  • Karma: 227
It is really weired: I have two very similar questions. One works, one doesn't. They are just one after the other.

The survey logic files are fine for both. One difference between the two that I can see: the exclusive codes for the question that works are one digit, the ones for the question that doesn't work are two digits.

Is there a way to send you the file via email or something?
Have a look at the manual! It is a really valuable source for information. Here some helpful links:
Manual (EN) | Question Types | Question Attributes | Workarounds

If you found this answer helpful and it saved you some time please consider a donation to the project to keep Limesurvey going!
The administrator has disabled public write access.

Exclusive options for Multiple choice not working? 4 years 4 months ago #78588

  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • Moderator Lime
  • Posts: 9305
  • Thank you received: 1330
  • Karma: 386
TMSWhite wrote:
Denis-

That's an interesting strategy. That would let authors customize individual questions, especially if those functions could be overloaded within template.js
bugs.limesurvey.org/view.php?id=5807 :laugh: ;)

But need some time
Assistance on LimeSurvey forum and LimeSurvey core developpement are on my free time (Say thanks ?).
A bug not reported is a bug not corrected. | Please, read the documentation | La doc en français à besoin de vous
The administrator has disabled public write access.

Exclusive options for Multiple choice not working? 4 years 4 months ago #78591

  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • Moderator Lime
  • Posts: 9305
  • Thank you received: 1330
  • Karma: 386
holch wrote:
Is there a way to send you the file via email or something?
You can put the file in the bug report with a private View Status The only dev's see it.
(Tom, Carsten, Mazi ....)

Denis
Assistance on LimeSurvey forum and LimeSurvey core developpement are on my free time (Say thanks ?).
A bug not reported is a bug not corrected. | Please, read the documentation | La doc en français à besoin de vous
The administrator has disabled public write access.

Exclusive options for Multiple choice not working? 4 years 4 months ago #78596

  • holch
  • holch's Avatar
  • Offline
  • LimeSurvey Team
  • Posts: 5097
  • Thank you received: 756
  • Karma: 227
Seems like the problem was with conditions / relevance for this question. It didn't work in the per question preview, but it worked in the per group preview, as there was some condition applied to this question.
Have a look at the manual! It is a really valuable source for information. Here some helpful links:
Manual (EN) | Question Types | Question Attributes | Workarounds

If you found this answer helpful and it saved you some time please consider a donation to the project to keep Limesurvey going!
The administrator has disabled public write access.

Exclusive options for Multiple choice not working? 4 years 4 months ago #78620

  • Mazi
  • Mazi's Avatar
  • Offline
  • LimeSurvey Team
  • Posts: 5984
  • Thank you received: 368
  • Karma: 260
TMSWhite wrote:
There was a standard set of EM-related CSS added to to all templates.
Tom, is there a related bug ticket for this or do you have a build number for me when this was added?
Can you write 1-2 sentences why adding that CSS was necessary for EM to work properly?

Best regards/Beste Grüße,
Dr. Marcel Minke
(Limesurvey Head of Support)
Need Help? We offer professional Limesurvey support
Contact: marcel.minke(at)limesurvey.org'"
The administrator has disabled public write access.

Exclusive options for Multiple choice not working? 4 years 4 months ago #78684

  • TMSWhite
  • TMSWhite's Avatar
  • Offline
  • LimeSurvey Team
  • Posts: 758
  • Thank you received: 83
  • Karma: 37
Mazi-

This isn't a bug per say, but reflects how the question preview works.

Question level relevance is disabled for question preview. Otherwise, if the question was not relevant, you wouldn't be able to preview it.

However, it is not possible to the sub-question-level relevance from array filter. So, unless you preview questions upon which the current question depends, the question-level preview may seem odd.

The simplest solution is to use group level preview instead of question-level preview to truly see how the question should behave.

This also doesn't relate to the EM CSS - that affects Citronade, but not this specific issue. Those EM-specific CSS are used to (a) extract the dynamic expression results, and (b) implement the dynamic validation (changes of color coding and dynamic display of appropriate messages).
The administrator has disabled public write access.

Exclusive options for Multiple choice not working? 4 years 4 months ago #78717

  • Mazi
  • Mazi's Avatar
  • Offline
  • LimeSurvey Team
  • Posts: 5984
  • Thank you received: 368
  • Karma: 260
Thanks for the information, Tom.

Could you post the additional CSS here for reference so users could simply add it to their template if they are updating from an older Limesurvey version whichnis missing this?

Best regards/Beste Grüße,
Dr. Marcel Minke
(Limesurvey Head of Support)
Need Help? We offer professional Limesurvey support
Contact: marcel.minke(at)limesurvey.org'"
The administrator has disabled public write access.
  • Page:
  • 1
  • 2
Moderators: ITEd
Time to create page: 0.324 seconds
Imprint                   Data Protection Statement                  Revocation information and revocation form