Welcome, Guest
Username: Password: Remember me

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

Question Multiple Short Text, Answering Options:"Hidden" changes outcome 3 months 1 week ago #107941

  • Bart
  • Bart'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 3 months 1 week ago #107945

  • holch
  • holch's Avatar
  • OFFLINE
  • LimeSurvey Team
  • Posts: 2569
  • Thank you received: 292
  • Karma: 106
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!
The administrator has disabled public write access.
The following user(s) said Thank You: Bart

Question Multiple Short Text, Answering Options:"Hidden" changes outcome 3 months 1 week ago #107952

  • Bart
  • Bart'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 3 months 6 days ago #107960

  • Bart
  • Bart'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 3 months 6 days ago #107965

  • tpartner
  • tpartner's Avatar
  • OFFLINE
  • LimeSurvey Team
  • Posts: 4072
  • Thank you received: 748
  • Karma: 341
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.
The administrator has disabled public write access.
Moderators: ITEd
Time to create page: 0.114 seconds
Donation Image