Check out the LimeSurvey source code on GitHub!

Exclusive options for Multiple choice not working?

More
4 years 10 months ago #78566 by holch
weird: with default theme and another question it doesn't work either. Will try the cache again.

I'm not a LimeSurvey GmbH member. I answer at the LimeSurvey forum in my spare time. No support via private message.
Some helpful links: Manual (EN) | Question Types | Workarounds

Please Log in to join the conversation.

More
4 years 10 months ago #78567 by DenisChenu

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 development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand (or search sondages pro).

Please Log in to join the conversation.

More
4 years 10 months ago #78568 by TMSWhite
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.

Please Log in to join the conversation.

More
4 years 10 months ago #78569 by holch
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.).

I'm not a LimeSurvey GmbH member. I answer at the LimeSurvey forum in my spare time. No support via private message.
Some helpful links: Manual (EN) | Question Types | Workarounds

Please Log in to join the conversation.

More
4 years 10 months ago #78570 by DenisChenu
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 development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand (or search sondages pro).

Please Log in to join the conversation.

More
4 years 10 months ago #78572 by TMSWhite
Denis-

That's an interesting strategy. That would let authors customize individual questions, especially if those functions could be overloaded within template.js

Please Log in to join the conversation.

More
4 years 10 months ago #78579 by holch
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.

I'm not a LimeSurvey GmbH member. I answer at the LimeSurvey forum in my spare time. No support via private message.
Some helpful links: Manual (EN) | Question Types | Workarounds

Please Log in to join the conversation.

More
4 years 10 months ago #78580 by TMSWhite
holch - does show survey logic show any errors?

Please Log in to join the conversation.

More
4 years 10 months ago #78581 by holch
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?

I'm not a LimeSurvey GmbH member. I answer at the LimeSurvey forum in my spare time. No support via private message.
Some helpful links: Manual (EN) | Question Types | Workarounds

Please Log in to join the conversation.

More
4 years 10 months ago #78588 by DenisChenu

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 development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand (or search sondages pro).

Please Log in to join the conversation.

More
4 years 10 months ago #78591 by DenisChenu

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 development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand (or search sondages pro).

Please Log in to join the conversation.

More
4 years 10 months ago #78596 by holch
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.

I'm not a LimeSurvey GmbH member. I answer at the LimeSurvey forum in my spare time. No support via private message.
Some helpful links: Manual (EN) | Question Types | Workarounds

Please Log in to join the conversation.

More
4 years 10 months ago #78620 by Mazi

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)survey-consulting.com'"

Please Log in to join the conversation.

More
4 years 10 months ago #78684 by TMSWhite
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).

Please Log in to join the conversation.

More
4 years 10 months ago #78717 by Mazi
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)survey-consulting.com'"

Please Log in to join the conversation.

Imprint                   Privacy policy         General Terms & Conditions         Revocation information and revocation form