Welcome, Guest
Username: Password: Remember me

TOPIC: Exclusive options for Multiple choice not working?

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

  • holch
  • holch's Avatar
  • OFFLINE
  • LimeSurvey Team
  • Posts: 2640
  • Thank you received: 313
  • Karma: 115
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.

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

  • DenisChenu
  • DenisChenu's Avatar
  • OFFLINE
  • Moderator Lime
  • Posts: 6276
  • Thank you received: 801
  • Karma: 241
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
The administrator has disabled public write access.

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

  • TMSWhite
  • TMSWhite's Avatar
  • OFFLINE
  • LimeSurvey Team
  • Posts: 759
  • Thank you received: 82
  • Karma: 36
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.

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

  • holch
  • holch's Avatar
  • OFFLINE
  • LimeSurvey Team
  • Posts: 2640
  • Thank you received: 313
  • Karma: 115
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.

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

  • DenisChenu
  • DenisChenu's Avatar
  • OFFLINE
  • Moderator Lime
  • Posts: 6276
  • Thank you received: 801
  • Karma: 241
I test with actual citronade,

No problem it work like a charm.

Can you export your survey ?

Denis
The administrator has disabled public write access.

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

  • TMSWhite
  • TMSWhite's Avatar
  • OFFLINE
  • LimeSurvey Team
  • Posts: 759
  • Thank you received: 82
  • Karma: 36
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.

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

  • holch
  • holch's Avatar
  • OFFLINE
  • LimeSurvey Team
  • Posts: 2640
  • Thank you received: 313
  • Karma: 115
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.

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

  • TMSWhite
  • TMSWhite's Avatar
  • OFFLINE
  • LimeSurvey Team
  • Posts: 759
  • Thank you received: 82
  • Karma: 36
holch - does show survey logic show any errors?
The administrator has disabled public write access.

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

  • holch
  • holch's Avatar
  • OFFLINE
  • LimeSurvey Team
  • Posts: 2640
  • Thank you received: 313
  • Karma: 115
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.

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

  • DenisChenu
  • DenisChenu's Avatar
  • OFFLINE
  • Moderator Lime
  • Posts: 6276
  • Thank you received: 801
  • Karma: 241
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
The administrator has disabled public write access.
Moderators: ITEd
Time to create page: 0.153 seconds
Donation Image