Bienvenue, Invité
Nom d'utilisateur : Mot de passe : Se souvenir de moi

SUJET : Question Multiple Short Text, Answering Options:"Hidden" changes outcome

Question Multiple Short Text, Answering Options:"Hidden" changes outcome il y a 5 mois 3 semaines #107941

  • Bart
  • Portrait de Bart
  • Hors ligne
  • Junior Lime
  • Messages : 35
  • Karma: 0
I created a Question Multiple Short Text.
I used the answering options with IF, ({if(DMUkwaliteit_SQ001==1,DMUnaam_SQ001_SQ001,'')}
I need this question for filtering on quality==1, so I use this question for further use

I works fine, as long as the question is NOT hidden.
If I hide the question, all answers are prefilled.

Thus, the outcome differs solely on the fact whether the question is hidden or not.
L'administrateur a désactivé l'accès en écriture pour le public.

Question Multiple Short Text, Answering Options:"Hidden" changes outcome il y a 5 mois 3 semaines #107945

  • holch
  • Portrait de holch
  • Hors ligne
  • LimeSurvey Team
  • Messages : 2817
  • Remerciements reçus 353
  • Karma: 121
How do you hide the question? With the "hide always" option on the advanced settings? if you use that, it is as if the question would have never been created. You need to hide the question via CSS or Javascript, so that it is there in the source code, but doesn't show to the respondent.
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!
L'administrateur a désactivé l'accès en écriture pour le public.
Cet utilisateur a été remercié pour son message par: Bart

Question Multiple Short Text, Answering Options:"Hidden" changes outcome il y a 5 mois 3 semaines #107952

  • Bart
  • Portrait de Bart
  • Hors ligne
  • Junior Lime
  • Messages : 35
  • Karma: 0
holch,
indeed with the hide always option on the advanced settings.
Do you have an example of CSS or Javascript, because I never used that before,
that would be really helpful,
L'administrateur a désactivé l'accès en écriture pour le public.

Question Multiple Short Text, Answering Options:"Hidden" changes outcome il y a 5 mois 3 semaines #107960

  • Bart
  • Portrait de Bart
  • Hors ligne
  • Junior Lime
  • Messages : 35
  • Karma: 0
holch,

i found the Java code, it works fine,thx
L'administrateur a désactivé l'accès en écriture pour le public.

Question Multiple Short Text, Answering Options:"Hidden" changes outcome il y a 5 mois 3 semaines #107965

  • tpartner
  • Portrait de tpartner
  • Hors ligne
  • LimeSurvey Team
  • Messages : 4256
  • Remerciements reçus 801
  • Karma: 367
Set up your survey to use JavaScript and add this to the source of the question:

<script type="text/javascript" charset="utf-8">	
	$(document).ready(function() {	
		$('#question{QID}').hide();
	});
</script>
Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.

LimeSurvey is open-source and run entirely by volunteers so please consider donating to support the project.
L'administrateur a désactivé l'accès en écriture pour le public.
Modérateurs: ITEd
Temps de génération de la page : 0.139 secondes
Donation Image