Check out the LimeSurvey source code on GitHub!
Welcome, Guest
Username: Password:

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

Question Multiple Short Text, Answering Options:"Hidden" changes outcome 2 years 7 months ago #107941

  • Bart01
  • Bart01's Avatar
  • Offline
  • Junior Lime
  • Posts: 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.
The administrator has disabled public write access.

Question Multiple Short Text, Answering Options:"Hidden" changes outcome 2 years 7 months ago #107945

  • holch
  • holch's Avatar
  • Offline
  • LimeSurvey Team
  • Posts: 5443
  • Thank you received: 813
  • Karma: 240
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 | [url=https://manual.limesurvey.org/Workarounds[/url]

If you found this answer helpful and it saved you some time please consider a [url=https://donate.limesurvey.org[/url] to the...
The administrator has disabled public write access.
The following user(s) said Thank You: Bart01

Question Multiple Short Text, Answering Options:"Hidden" changes outcome 2 years 7 months ago #107952

  • Bart01
  • Bart01's Avatar
  • Offline
  • Junior Lime
  • Posts: 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,
The administrator has disabled public write access.

Question Multiple Short Text, Answering Options:"Hidden" changes outcome 2 years 7 months ago #107960

  • Bart01
  • Bart01's Avatar
  • Offline
  • Junior Lime
  • Posts: 35
  • Karma: 0
holch,

i found the Java code, it works fine,thx
The administrator has disabled public write access.

Question Multiple Short Text, Answering Options:"Hidden" changes outcome 2 years 7 months ago #107965

  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Team
  • Posts: 6574
  • Thank you received: 1477
  • Karma: 579
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.
The administrator has disabled public write access.
Time to create page: 0.271 seconds
Imprint                   Privacy policy         General Terms & Conditions         Revocation information and revocation form