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

TOPIC: conditions on subquestion

conditions on subquestion 4 years 8 months ago #69820

Well I thought my problem is over but its working fine when the question is not hidden. When I hide the question using advanced setting-> always hide this question. The array filter does not seems to work.

I checked the html source and it seems the question itself is not there in the html!!
The administrator has disabled public write access.

conditions on subquestion 4 years 8 months ago #69821

Use

var qHiddenID = 14257;
$('#question'+14257+'').hide();



where qHiddenID is your question id

to hide your question
Last Edit: 4 years 8 months ago by zahidansari.
The administrator has disabled public write access.

conditions on subquestion 4 years 8 months ago #69827

  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Team
  • Posts: 6207
  • Thank you received: 1374
  • Karma: 538
You cannot hide questions with the advanced settings if you want to use JavaScript. You must use CSS or JavaScript to hide the question.

If you use the advanced setting, the question is never rendered on the page so cannot be manipulated with JavaScript.

In my opinion this "feature" causes too much confusion and should be dropped.
Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The administrator has disabled public write access.

conditions on subquestion 4 years 8 months ago #69828

Thanks dude....
The administrator has disabled public write access.

conditions on subquestion 4 years 8 months ago #69837

  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • Moderator Lime
  • Posts: 9298
  • Thank you received: 1330
  • Karma: 386
tpartner wrote:
In my opinion this "feature" causes too much confusion and should be dropped.
Maybe, but:
If i want to fill the survey with url and don't want user can access this answer ?
If i want to fill the survey with Session ?
If i want to fill the survey with ajax ?


Just hide the answer item with css aren't good, because user can change it.

Maybe a "activate" or "read-only" option ? ( directly in HTML, can be removed with jquery).

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.

conditions on subquestion 4 years 8 months ago #69842

  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Team
  • Posts: 6207
  • Thank you received: 1374
  • Karma: 538
Then rename the setting so it doesn't cause so much confusion.
Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The administrator has disabled public write access.

conditions on subquestion 4 years 8 months ago #69847

  • Mazi
  • Mazi's Avatar
  • Offline
  • LimeSurvey Team
  • Posts: 5977
  • Thank you received: 368
  • Karma: 260
I vote for extending this feature or overwork it.

Question: Why don't we just use a $('#question'XYZ'').hide(); instead of not generating the source code at all as it is currently done? Wouldn't this solution cover all our needs?

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.

conditions on subquestion 4 years 8 months ago #69854

  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • Moderator Lime
  • Posts: 9298
  • Thank you received: 1330
  • Karma: 386
Mazi wrote:
I vote for extending this feature or overwork it.

Question: Why don't we just use a $('#question'XYZ'').hide(); instead of not generating the source code at all as it is currently done? Wouldn't this solution cover all our needs?

Just put a style="display:none" directly in HTML :).

I think it's best to have an extra item for all question:
"Extra class : "

With an {EXTRACLASS) in template.css
Then you can have
<div id="questionXXX" class="question-wrapper list-dropdown hide">
OR
<div id="questionXXX" class="question-wrapper list-dropdown tparner-workaround">
OR
<div id="questionXXX" class="question-wrapper list-dropdown important">

etc etc ...

Istarted to work with something like this for CI, but there are some old template incompatibility to resolve, and redo the work for Yii ;).

Denis

PS:
Maybe, but:
If i want to fill the survey with url and don't want user can access this answer ?
If i want to fill the survey with Session ?
If i want to fill the survey with ajax ?


Just hide the answer item with css aren't good, because user can change it.
It's just what i think, maybe it's not important :).
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
Last Edit: 4 years 8 months ago by DenisChenu.
The administrator has disabled public write access.

conditions on subquestion 4 years 8 months ago #69860

  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Team
  • Posts: 6207
  • Thank you received: 1374
  • Karma: 538
I think it's best to have an extra item for all question:
"Extra class : "
Great idea. Joomla has this for all content, modules, etc. and I use it all the time. You can also add multiple classes.
Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The administrator has disabled public write access.

conditions on subquestion 4 years 8 months ago #69884

  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • Moderator Lime
  • Posts: 9298
  • Thank you received: 1330
  • Karma: 386
tpartner wrote:
I think it's best to have an extra item for all question:
"Extra class : "
Great idea. Joomla has this for all content, modules, etc. and I use it all the time. You can also add multiple classes.
Ho, yes :).
Just think of removing bad caracter from this "extraclass" :).

I look on Yii more next week and send a patch start :).

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.

conditions on subquestion 4 years 8 months ago #69890

  • TMSWhite
  • TMSWhite's Avatar
  • Offline
  • LimeSurvey Team
  • Posts: 758
  • Thank you received: 83
  • Karma: 37
Is the core issue a problem with cascading array filters? I've fixed that known bug with Expression Manager (EM) so that multiple array filters work properly on the same and different pages.

I also updated the data model in the _CI and _dev_tms (to be 1.92) branches so that we can assign different relevance equations to each subquestion. That way, you can use a array_filter (which auto-creates sub-question-level relevance equations), plus add additional question and/or sub-question-level relevance (the successor for conditions). The Internal logic portions for that work, but we don't have a GUI yet for adding sub-question-level relevance, although that would be easy - just add an extra column in addition to code and/or assessment value.
The administrator has disabled public write access.

conditions on subquestion 4 years 8 months ago #70186

  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • Moderator Lime
  • Posts: 9298
  • Thank you received: 1330
  • Karma: 386
Oups :
ideas.limesurvey.org/ideatorrent/idea/343/

Waiting moderation :)
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.

conditions on subquestion 4 years 8 months ago #70205

  • Mazi
  • Mazi's Avatar
  • Offline
  • LimeSurvey Team
  • Posts: 5977
  • Thank you received: 368
  • Karma: 260
Shnoulle wrote: Idea approved.

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.
The following user(s) said Thank You: zahidansari

conditions on subquestion 3 years 8 months ago #89417

  • Mazi
  • Mazi's Avatar
  • Offline
  • LimeSurvey Team
  • Posts: 5977
  • Thank you received: 368
  • Karma: 260
Mazi wrote:
Shnoulle wrote: Idea approved.
Comment added:
Using a question attribute is definitely the easiest solution to implement this. Simply add an attribute "CSS class name(s)" at which the user can enter specific class name(s) for a certain question. These must be added when generating the HTML code for the question at the survey (previouly done in qanda.php) and can then be used at template.css.

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.

conditions on subquestion 3 years 8 months ago #89422

  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Team
  • Posts: 6207
  • Thank you received: 1374
  • Karma: 538
And another:

We should also look at automatically adding the question code to the question class.
Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The administrator has disabled public write access.
  • Page:
  • 1
  • 2
Moderators: ITEd
Time to create page: 0.451 seconds
Imprint                   Data Protection Statement                  Revocation information and revocation form