Check out the LimeSurvey source code on GitHub!

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

More
2 years 10 months ago #107941 by Bart01
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.

Please Log in to join the conversation.

More
2 years 10 months ago #107945 by holch
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.

I'm not a LimeSurvey GmbH member. I answer at the LimeSurvey forum in my spare time. No support via private message.
Some helpful links: Manual (EN) | Question Types | Workarounds
The following user(s) said Thank You: Bart01

Please Log in to join the conversation.

More
2 years 10 months ago #107952 by Bart01
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,

Please Log in to join the conversation.

More
2 years 10 months ago #107960 by Bart01
holch,

i found the Java code, it works fine,thx

Please Log in to join the conversation.

More
2 years 10 months ago #107965 by tpartner
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.

Please Log in to join the conversation.

Imprint                   Privacy policy         General Terms & Conditions         Revocation information and revocation form