Welcome, Guest
Username: Password: Remember me

TOPIC: fill ranking array with answers from previous question

fill ranking array with answers from previous question 4 years 9 months ago #59648

  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Team
  • Posts: 5410
  • Thank you received: 1154
  • Karma: 479
I'm afraid I don't understand the question. This link describes how to insert the script and then you change the values in the script for your IDs.
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.

fill ranking array with answers from previous question 4 years 9 months ago #59654

Tony,

I see it now.
Many thanks for the support.

Jan Willem
The administrator has disabled public write access.

fill ranking array with answers from previous question 4 years 9 months ago #59689

Hello Tony,

I'm using LS 1.90.
I've enabled JS and successfully ran the test script (custom template).
I've cut and paste the workaround JS script in the custom template (at the beginning). Didn't modify anything.
I've followed the instructions an ran the survey for testing but:
- the multiple choice questions are not hidden
- the ranking filter doesn't work
I'm tried question by question and group by group.
If you like I can supply you a login.

Jan Willem
The administrator has disabled public write access.

fill ranking array with answers from previous question 4 years 9 months ago #59738

  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Team
  • Posts: 5410
  • Thank you received: 1154
  • Karma: 479
Jan, can you give a link to a sample survey?
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.

fill ranking array with answers from previous question 4 years 9 months ago #59748

Hope this link willl work.I made the survey active.

survey.wwavdata.nl/limesurvey/index.php?sid=68179&lang=en

Problem quesion is:
groep2
v2a: 2.1 hidden multiple option question -> and the next.

Jan Willem
The administrator has disabled public write access.

fill ranking array with answers from previous question 4 years 9 months ago #59771

  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Team
  • Posts: 5410
  • Thank you received: 1154
  • Karma: 479
Jan, that survey requires registration and I'm afraid I don't wish to leave an email address. Can you make it public?
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.

fill ranking array with answers from previous question 4 years 9 months ago #59775

The administrator has disabled public write access.

fill ranking array with answers from previous question 4 years 9 months ago #59777

  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Team
  • Posts: 5410
  • Thank you received: 1154
  • Karma: 479
You need to use the question IDs, not the question codes:


So, in group 2, this line:
triggerCells(v2b, v2a, [1,2]);
Should be:
triggerCells(8, 182, [1,2]);

And, in group 3, this line:
rankFilter(v3a, v3b, 1);
Should be:
rankFilter(236, 264, 1);
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.

fill ranking array with answers from previous question 4 years 9 months ago #59782

Thanks again! Will give it try.
The administrator has disabled public write access.

fill ranking array with answers from previous question 4 years 9 months ago #59798

Perfect!!!! It works. Even when creating more groups and referring to the first. Hopefully last question:) The last group I've created is a multiple numeric (sum to 100). Used same method. The hidden question is hidden but the list is the complete list again. Can that to?
survey.wwavdata.nl/limesurvey/index.php?sid=68179&lang=nl
question 5.
If you have enough of my questions I understand:)
The administrator has disabled public write access.

fill ranking array with answers from previous question 4 years 9 months ago #59842

  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Team
  • Posts: 5410
  • Thank you received: 1154
  • Karma: 479
Can that to?
Yes, replace the script in the source of the multiple-options on that page with the following. Replace "MM" with the ID of the multiple options question (375) and "NN" with the ID of the multiple-numeric question (402). Note that the call for the "calculateValue" function is specific to your demo survey and would need to be modified for other surveys/groups/questions.
<script type="text/javascript" charset="utf-8">
 
	$(document).ready(function() {
 
		handleChecked3(MM, NN);
 
		function handleChecked3(q1ID, q2ID) {
 
			// Hide Q1
			$('#question'+q1ID+'').hide();
 
			// Loop through all hidden Q1 options
			$('#question'+q1ID+' li[id^="javatbd"]:hidden').each(function(i) {
 
				// Find the answer value
				var ansTxt = $('label', this).text();
 
				// Find the corresponding list item in Q2
				var el = $('#question'+q2ID+' label[for^="answer"]').filter(function(){return $(this).text() == ansTxt;}).parent('li:eq(0)');
 
				// Hide the corresponding list item in Q2
				$(el).hide();
 
				// Set the corresponding input in Q2 to 0
				$('input.text', el).val(0);
 
			});
 
			// Calculate for sum amount
			calculateValue68179X12X402(3) // NOTE: this needs to use local survey, group and q2 question IDs
		}
	});
 
</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.

fill ranking array with answers from previous question 4 years 9 months ago #59873

Sorry. Did it. List keeps blank. This is the source code of the page. I've put the JS in the multiple numeric question. Tried it in the multiple options page but without result.
===============================================
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="www.w3.org/1999/xhtml" xml:lang="nl" lang="nl">
<head>
<link rel="stylesheet" type="text/css" media="all" href="survey.wwavdata.nl/limesurvey/scripts/jq.../start/jquery-ui.css" />
<link rel="stylesheet" type="text/css" media="all" href="survey.wwavdata.nl/limesurvey/scripts/jq...rt/lime-progress.css" />
<script type="text/javascript" src="survey.wwavdata.nl/limesurvey/scripts/jquery/jquery.js"></script>
<script type="text/javascript" src="survey.wwavdata.nl/limesurvey/scripts/jquery/jquery-ui.js"></script>
<link href="survey.wwavdata.nl/limesurvey/scripts/jq.../start/jquery-ui.css" media="all" type="text/css" rel="stylesheet" /><link href="survey.wwavdata.nl/limesurvey/scripts/jq...rt/lime-progress.css" media="all" type="text/css" rel="stylesheet" /><script type="text/javascript" src="survey.wwavdata.nl/limesurvey/scripts/jquery/jquery-ui.js"></script>

<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
<title>A SURVEY: Nederlands Hartstichting meting 2 - 2009</title>

<meta name="generator" content="LimeSurvey www.limesurvey.org" />

<!-- The following line includes template.css and if an RTL-language is used template-rtl.css -->
<link rel='stylesheet' type='text/css' href='survey.wwavdata.nl/limesurvey/upload/tem...ss_grey/template.css' />


<!--[if lte IE 6]>
<link rel="stylesheet" type="text/css" href="survey.wwavdata.nl/limesurvey/upload/tem...ss_grey/ie_fix_6.css" />
<![endif]-->
<!--[if IE 7]>
<link rel="stylesheet" type="text/css" href="survey.wwavdata.nl/limesurvey/upload/tem...ss_grey/ie_fix_7.css" />
<![endif]-->
<!--[if IE 8]>
<link rel="stylesheet" type="text/css" href="survey.wwavdata.nl/limesurvey/upload/tem...ss_grey/ie_fix_8.css" />
<![endif]-->

<!-- The following CSS hides visual elements of the progress bar from screen readers. -->

<style type="text/css" media="aural tty">
progress-graph .zero, progress-graph .graph, progress-graph .cent { display: none; }
</style>

<script type="text/javascript" src="survey.wwavdata.nl/limesurvey/upload/tem...ess_grey/template.js"></script>
<link rel="shortcut icon" href="survey.wwavdata.nl/limesurvey/upload/tem...ess_grey/favicon.ico" />
<script type="text/javascript" src="survey.wwavdata.nl/limesurvey/scripts/survey_runtime.js"></script>
</head>
<body>
<div class="surveyBorder">
<form method='post' action='survey.wwavdata.nl/limesurvey/index.php' id='limesurvey' name='limesurvey' autocomplete='off'>
<!-- INPUT NAMES -->

<input type='hidden' name='fieldnames' value='68179X12X3751|68179X12X3752|68179X12X3753|68179X12X3754|68179X12X3755|68179X12X3756|68179X12X3757|68179X12X3758|68179X12X3759|68179X12X37510|68179X12X37511|68179X12X37512|68179X12X37513|68179X12X37514|68179X12X37515|68179X12X37516|68179X12X37517|68179X12X37518|68179X12X37519|68179X12X37520|68179X12X37521|68179X12X37522|68179X12X37523|68179X12X37524|68179X12X37525|68179X12X37526|68179X12X4021|68179X12X4022|68179X12X4023|68179X12X4024|68179X12X4025|68179X12X4026|68179X12X4027|68179X12X4028|68179X12X4029|68179X12X40210|68179X12X40211|68179X12X40212|68179X12X40213|68179X12X40214|68179X12X40215|68179X12X40216|68179X12X40217|68179X12X40218|68179X12X40219|68179X12X40220|68179X12X40221|68179X12X40222|68179X12X40223|68179X12X40224|68179X12X40225|68179X12X40226' id='fieldnames' />
<table class="surveyWrapper">
<tr>
<td>
<table width="100%" cellspacing="0">
<tr>
<td class="graph">
<script type="text/javascript">
$(function() {
$("#progressbar").progressbar({
value: 36
});
});
</script>

<div id="progress-wrapper">

<span class="hide">U heeft 36% van deze vragenlijst ingevuld</span>
<div id="progress-pre">0%</div>
<div id="progressbar"></div>
<div id="progress-post">100%</div>
</div>
</td>
</tr>

<tr>
<td align="center">

</td>
</tr>
</table>
<input type='text' id='runonce' value='0' style='display: none;'/>
<!--JavaScript FOR CONDITIONAL QUESTIONS -->
<script type='text/javascript'>
<!--
function noop_checkconditions(value, name, type)
{
}

function checkconditions(value, name, type)
{
if (type == 'radio' || type == 'select-one')
{
var hiddenformname='java'+name;
document.getElementById(hiddenformname).value=value;
}

if (type == 'checkbox')
{
var hiddenformname='java'+name;
var chkname='answer'+name;
if (document.getElementById(chkname).checked)
{
document.getElementById(hiddenformname).value='Y';
} else
{
document.getElementById(hiddenformname).value='';
}
}

document.getElementById('runonce').value=1;
}
//-->
</script>


<!-- START THE GROUP -->
</td>
</tr>
<tr>
<td class="separator"></td>
</tr>
<tr>
<td>

<div class="groupName">groep2.3</div>




<!-- PRESENT THE QUESTIONS -->
<div id="question375" class="multiple-opt">
<table class="questionTable">
<tr>
<td>
<table width="100%" cellspacing="0">

<tr class="questionText">
<td>
<span class="questionCode">v5a:</span> <span class="asterisk"></span>[HIDDEN multiple options] 5. Stel u heeft € 100 te besteden, hoe zou u die verdelen over deze goede doelen? De som dient op €100 uit te komen. Als u aan een aandachtsgebied niets wilt geven vul dan een 0 in.<br /><br />
<span class="questionhelp">Selecteer de toepasselijke opties</span>


</td>
</tr>
<tr class="questionAnswer">

<td>
<input type="hidden" name="MULTI68179X12X375" value="26" />


<ul>


<li id='javatbd68179X12X3751'>
<input type='hidden' name='tbdisp68179X12X3751' id='tbdisp68179X12X3751' value='on' />

<input class="checkbox" type="checkbox" name="68179X12X3751" id="answer68179X12X3751" value="Y" onclick='cancelBubbleThis(event);noop_checkconditions(this.value, this.name, this.type)' />
<label for="answer68179X12X3751" class="answertext">Nederlandse Hartstichting</label>
<input type="hidden" name="java68179X12X3751" id="java68179X12X3751" value="" />

</li>


<li id='javatbd68179X12X3752'>
<input type='hidden' name='tbdisp68179X12X3752' id='tbdisp68179X12X3752' value='on' />

<input class="checkbox" type="checkbox" name="68179X12X3752" id="answer68179X12X3752" value="Y" onclick='cancelBubbleThis(event);noop_checkconditions(this.value, this.name, this.type)' />
<label for="answer68179X12X3752" class="answertext">Astma Fonds</label>
<input type="hidden" name="java68179X12X3752" id="java68179X12X3752" value="" />
</li>


<li id='javatbd68179X12X3753'>

<input type='hidden' name='tbdisp68179X12X3753' id='tbdisp68179X12X3753' value='on' />

<input class="checkbox" type="checkbox" name="68179X12X3753" id="answer68179X12X3753" value="Y" onclick='cancelBubbleThis(event);noop_checkconditions(this.value, this.name, this.type)' />
<label for="answer68179X12X3753" class="answertext">Cliniclowns</label>
<input type="hidden" name="java68179X12X3753" id="java68179X12X3753" value="" />
</li>


<li id='javatbd68179X12X3754' style='display: none'>

<input type='hidden' name='tbdisp68179X12X3754' id='tbdisp68179X12X3754' value='off' />

<input class="checkbox" type="checkbox" name="68179X12X3754" id="answer68179X12X3754" value="Y" onclick='cancelBubbleThis(event);noop_checkconditions(this.value, this.name, this.type)' />
<label for="answer68179X12X3754" class="answertext">Diabetes Fonds</label>
<input type="hidden" name="java68179X12X3754" id="java68179X12X3754" value="" />
</li>


<li id='javatbd68179X12X3755' style='display: none'>

<input type='hidden' name='tbdisp68179X12X3755' id='tbdisp68179X12X3755' value='off' />

<input class="checkbox" type="checkbox" name="68179X12X3755" id="answer68179X12X3755" value="Y" onclick='cancelBubbleThis(event);noop_checkconditions(this.value, this.name, this.type)' />
<label for="answer68179X12X3755" class="answertext">Hersenstichting Nederland</label>

<input type="hidden" name="java68179X12X3755" id="java68179X12X3755" value="" />
</li>


<li id='javatbd68179X12X3756' style='display: none'>

<input type='hidden' name='tbdisp68179X12X3756' id='tbdisp68179X12X3756' value='off' />

<input class="checkbox" type="checkbox" name="68179X12X3756" id="answer68179X12X3756" value="Y" onclick='cancelBubbleThis(event);noop_checkconditions(this.value, this.name, this.type)' />
<label for="answer68179X12X3756" class="answertext">Jantje Beton</label>
<input type="hidden" name="java68179X12X3756" id="java68179X12X3756" value="" />
</li>



<li id='javatbd68179X12X3757' style='display: none'>

<input type='hidden' name='tbdisp68179X12X3757' id='tbdisp68179X12X3757' value='off' />

<input class="checkbox" type="checkbox" name="68179X12X3757" id="answer68179X12X3757" value="Y" onclick='cancelBubbleThis(event);noop_checkconditions(this.value, this.name, this.type)' />
<label for="answer68179X12X3757" class="answertext">Jump (Kinderhartenfonds)</label>
<input type="hidden" name="java68179X12X3757" id="java68179X12X3757" value="" />
</li>


<li id='javatbd68179X12X3758' style='display: none'>

<input type='hidden' name='tbdisp68179X12X3758' id='tbdisp68179X12X3758' value='off' />

<input class="checkbox" type="checkbox" name="68179X12X3758" id="answer68179X12X3758" value="Y" onclick='cancelBubbleThis(event);noop_checkconditions(this.value, this.name, this.type)' />
<label for="answer68179X12X3758" class="answertext">Kika (Kinderen Kanker Vrij)</label>
<input type="hidden" name="java68179X12X3758" id="java68179X12X3758" value="" />
</li>


<li id='javatbd68179X12X3759' style='display: none'>

<input type='hidden' name='tbdisp68179X12X3759' id='tbdisp68179X12X3759' value='off' />

<input class="checkbox" type="checkbox" name="68179X12X3759" id="answer68179X12X3759" value="Y" onclick='cancelBubbleThis(event);noop_checkconditions(this.value, this.name, this.type)' />
<label for="answer68179X12X3759" class="answertext">KWF Kankerbestrijding</label>
<input type="hidden" name="java68179X12X3759" id="java68179X12X3759" value="" />
</li>


<li id='javatbd68179X12X37510' style='display: none'>

<input type='hidden' name='tbdisp68179X12X37510' id='tbdisp68179X12X37510' value='off' />

<input class="checkbox" type="checkbox" name="68179X12X37510" id="answer68179X12X37510" value="Y" onclick='cancelBubbleThis(event);noop_checkconditions(this.value, this.name, this.type)' />
<label for="answer68179X12X37510" class="answertext">Natuurmonumenten</label>

<input type="hidden" name="java68179X12X37510" id="java68179X12X37510" value="" />
</li>


<li id='javatbd68179X12X37511' style='display: none'>

<input type='hidden' name='tbdisp68179X12X37511' id='tbdisp68179X12X37511' value='off' />

<input class="checkbox" type="checkbox" name="68179X12X37511" id="answer68179X12X37511" value="Y" onclick='cancelBubbleThis(event);noop_checkconditions(this.value, this.name, this.type)' />
<label for="answer68179X12X37511" class="answertext">Nederland War Child</label>
<input type="hidden" name="java68179X12X37511" id="java68179X12X37511" value="" />
</li>



<li id='javatbd68179X12X37512' style='display: none'>

<input type='hidden' name='tbdisp68179X12X37512' id='tbdisp68179X12X37512' value='off' />

<input class="checkbox" type="checkbox" name="68179X12X37512" id="answer68179X12X37512" value="Y" onclick='cancelBubbleThis(event);noop_checkconditions(this.value, this.name, this.type)' />
<label for="answer68179X12X37512" class="answertext">Nederlandse Cystic Fibrosis Stichting</label>
<input type="hidden" name="java68179X12X37512" id="java68179X12X37512" value="" />
</li>


<li id='javatbd68179X12X37513' style='display: none'>

<input type='hidden' name='tbdisp68179X12X37513' id='tbdisp68179X12X37513' value='off' />

<input class="checkbox" type="checkbox" name="68179X12X37513" id="answer68179X12X37513" value="Y" onclick='cancelBubbleThis(event);noop_checkconditions(this.value, this.name, this.type)' />
<label for="answer68179X12X37513" class="answertext">Nederlandse Rode Kruis</label>
<input type="hidden" name="java68179X12X37513" id="java68179X12X37513" value="" />
</li>


<li id='javatbd68179X12X37514' style='display: none'>

<input type='hidden' name='tbdisp68179X12X37514' id='tbdisp68179X12X37514' value='off' />

<input class="checkbox" type="checkbox" name="68179X12X37514" id="answer68179X12X37514" value="Y" onclick='cancelBubbleThis(event);noop_checkconditions(this.value, this.name, this.type)' />
<label for="answer68179X12X37514" class="answertext">Nelson Mandela Kinderfonds</label>
<input type="hidden" name="java68179X12X37514" id="java68179X12X37514" value="" />
</li>


<li id='javatbd68179X12X37515' style='display: none'>

<input type='hidden' name='tbdisp68179X12X37515' id='tbdisp68179X12X37515' value='off' />

<input class="checkbox" type="checkbox" name="68179X12X37515" id="answer68179X12X37515" value="Y" onclick='cancelBubbleThis(event);noop_checkconditions(this.value, this.name, this.type)' />
<label for="answer68179X12X37515" class="answertext">Nierstichting Nederland</label>

<input type="hidden" name="java68179X12X37515" id="java68179X12X37515" value="" />
</li>


<li id='javatbd68179X12X37516' style='display: none'>

<input type='hidden' name='tbdisp68179X12X37516' id='tbdisp68179X12X37516' value='off' />

<input class="checkbox" type="checkbox" name="68179X12X37516" id="answer68179X12X37516" value="Y" onclick='cancelBubbleThis(event);noop_checkconditions(this.value, this.name, this.type)' />
<label for="answer68179X12X37516" class="answertext">Novib</label>
<input type="hidden" name="java68179X12X37516" id="java68179X12X37516" value="" />
</li>



<li id='javatbd68179X12X37517' style='display: none'>

<input type='hidden' name='tbdisp68179X12X37517' id='tbdisp68179X12X37517' value='off' />

<input class="checkbox" type="checkbox" name="68179X12X37517" id="answer68179X12X37517" value="Y" onclick='cancelBubbleThis(event);noop_checkconditions(this.value, this.name, this.type)' />
<label for="answer68179X12X37517" class="answertext">Reumafonds</label>
<input type="hidden" name="java68179X12X37517" id="java68179X12X37517" value="" />
</li>


<li id='javatbd68179X12X37518' style='display: none'>

<input type='hidden' name='tbdisp68179X12X37518' id='tbdisp68179X12X37518' value='off' />

<input class="checkbox" type="checkbox" name="68179X12X37518" id="answer68179X12X37518" value="Y" onclick='cancelBubbleThis(event);noop_checkconditions(this.value, this.name, this.type)' />
<label for="answer68179X12X37518" class="answertext">Ronald McDonald fonds</label>
<input type="hidden" name="java68179X12X37518" id="java68179X12X37518" value="" />
</li>


<li id='javatbd68179X12X37519' style='display: none'>

<input type='hidden' name='tbdisp68179X12X37519' id='tbdisp68179X12X37519' value='off' />

<input class="checkbox" type="checkbox" name="68179X12X37519" id="answer68179X12X37519" value="Y" onclick='cancelBubbleThis(event);noop_checkconditions(this.value, this.name, this.type)' />
<label for="answer68179X12X37519" class="answertext">SOS Kinderdorpen</label>
<input type="hidden" name="java68179X12X37519" id="java68179X12X37519" value="" />
</li>


<li id='javatbd68179X12X37520' style='display: none'>

<input type='hidden' name='tbdisp68179X12X37520' id='tbdisp68179X12X37520' value='off' />

<input class="checkbox" type="checkbox" name="68179X12X37520" id="answer68179X12X37520" value="Y" onclick='cancelBubbleThis(event);noop_checkconditions(this.value, this.name, this.type)' />
<label for="answer68179X12X37520" class="answertext">Unicef</label>

<input type="hidden" name="java68179X12X37520" id="java68179X12X37520" value="" />
</li>


<li id='javatbd68179X12X37521' style='display: none'>

<input type='hidden' name='tbdisp68179X12X37521' id='tbdisp68179X12X37521' value='off' />

<input class="checkbox" type="checkbox" name="68179X12X37521" id="answer68179X12X37521" value="Y" onclick='cancelBubbleThis(event);noop_checkconditions(this.value, this.name, this.type)' />
<label for="answer68179X12X37521" class="answertext">Wereld Natuur Fonds</label>
<input type="hidden" name="java68179X12X37521" id="java68179X12X37521" value="" />
</li>



<li id='javatbd68179X12X37522' style='display: none'>

<input type='hidden' name='tbdisp68179X12X37522' id='tbdisp68179X12X37522' value='off' />

<input class="checkbox" type="checkbox" name="68179X12X37522" id="answer68179X12X37522" value="Y" onclick='cancelBubbleThis(event);noop_checkconditions(this.value, this.name, this.type)' />
<label for="answer68179X12X37522" class="answertext">Zonnebloem</label>
<input type="hidden" name="java68179X12X37522" id="java68179X12X37522" value="" />
</li>


<li id='javatbd68179X12X37523' style='display: none'>

<input type='hidden' name='tbdisp68179X12X37523' id='tbdisp68179X12X37523' value='off' />

<input class="checkbox" type="checkbox" name="68179X12X37523" id="answer68179X12X37523" value="Y" onclick='cancelBubbleThis(event);noop_checkconditions(this.value, this.name, this.type)' />
<label for="answer68179X12X37523" class="answertext">Een ander goed doel op het gebied van natuur en milieu</label>
<input type="hidden" name="java68179X12X37523" id="java68179X12X37523" value="" />
</li>


<li id='javatbd68179X12X37524' style='display: none'>

<input type='hidden' name='tbdisp68179X12X37524' id='tbdisp68179X12X37524' value='off' />

<input class="checkbox" type="checkbox" name="68179X12X37524" id="answer68179X12X37524" value="Y" onclick='cancelBubbleThis(event);noop_checkconditions(this.value, this.name, this.type)' />
<label for="answer68179X12X37524" class="answertext">Een ander goed doel op het gebied van gezondheid</label>
<input type="hidden" name="java68179X12X37524" id="java68179X12X37524" value="" />
</li>


<li id='javatbd68179X12X37525' style='display: none'>

<input type='hidden' name='tbdisp68179X12X37525' id='tbdisp68179X12X37525' value='off' />

<input class="checkbox" type="checkbox" name="68179X12X37525" id="answer68179X12X37525" value="Y" onclick='cancelBubbleThis(event);noop_checkconditions(this.value, this.name, this.type)' />
<label for="answer68179X12X37525" class="answertext">Een ander goed doel op het gebied van welzijn en cultuur</label>

<input type="hidden" name="java68179X12X37525" id="java68179X12X37525" value="" />
</li>


<li id='javatbd68179X12X37526' style='display: none'>

<input type='hidden' name='tbdisp68179X12X37526' id='tbdisp68179X12X37526' value='off' />

<input class="checkbox" type="checkbox" name="68179X12X37526" id="answer68179X12X37526" value="Y" onclick='cancelBubbleThis(event);noop_checkconditions(this.value, this.name, this.type)' />
<label for="answer68179X12X37526" class="answertext">Een ander goed doel op het gebied van internationale hulp</label>
<input type="hidden" name="java68179X12X37526" id="java68179X12X37526" value="" />
</li>

</ul>

<input type='hidden' name='display68179X12X375' id='display375' value='on' />

</td>
</tr>
<tr>
<td>
<span class="survey-question-help"></span>
</td>

</tr>
</table>
</td>
</tr>
</table>
</div>
<div id="question402" class="numeric-multi">
<table class="questionTable">
<tr>

<td>
<table width="100%" cellspacing="0">
<tr class="questionText">
<td>
<span class="questionCode">v5b:</span> <span class="asterisk"></span>5. Stel u heeft € 100 te besteden, hoe zou u die verdelen over deze goede doelen? De som dient op €100 uit te komen. Als u aan een aandachtsgebied niets wilt geven vul dan een 0 in.<br />
<script type="text/javascript" charset="utf-8">

$(document).ready(function() {

handleChecked3(375, 402);

function handleChecked3(q1ID, q2ID) {

// Hide Q1
$('#question'+q1ID+'').hide();

// Loop through all hidden Q1 options
$('#question'+q1ID+' li[id^="javatbd"]:hidden').each(function(i) {

// Find the answer value
var ansTxt = $('label', this).text();

// Find the corresponding list item in Q2
var el = $('#question'+q2ID+' label[for^="answer"]').filter(function(){return $(this).text() == ansTxt;}).parent('li:eq(0)');

// Hide the corresponding list item in Q2
$(el).hide();

// Set the corresponding input in Q2 to 0
$('input.text', el).val(0);

});

// Calculate for sum amount
calculateValue68179X12X402(3) // NOTE: this needs to use local survey, group and q2 question IDs
}
});

</script><br />
<span class="questionhelp"></span>



</td>
</tr>
<tr class="questionAnswer">
<td>
<p class="tip">In dit veld kunnen alleen cijfers worden ingevoerd</p>
<p id="equals_num_value_68179X12X402" class="tip">Het totaal moet gelijk zijn aan 100</p>
<ul>
<li>
<label for="answer68179X12X4021">Nederlandse Hartstichting</label>

<span class="input">

<input class="text" type="text" size="10" name="68179X12X4021" id="answer68179X12X4021" value="" onkeyup="noop_checkconditions(this.value, this.name, this.type);" onkeypress="inputField = event.srcElement ? event.srcElement : event.target || event.currentTarget; if (inputField.value.indexOf('.')>0 && String.fromCharCode(getkey(event))=='.') return false; return goodchars(event,'0123456789.')" onblur="calculateValue68179X12X402(3)" maxlength="25" />

</span>
</li>
<li>
<label for="answer68179X12X4022">Astma Fonds</label>
<span class="input">

<input class="text" type="text" size="10" name="68179X12X4022" id="answer68179X12X4022" value="" onkeyup="noop_checkconditions(this.value, this.name, this.type);" onkeypress="inputField = event.srcElement ? event.srcElement : event.target || event.currentTarget; if (inputField.value.indexOf('.')>0 && String.fromCharCode(getkey(event))=='.') return false; return goodchars(event,'0123456789.')" onblur="calculateValue68179X12X402(3)" maxlength="25" />

</span>
</li>

<li>
<label for="answer68179X12X4023">Cliniclowns</label>
<span class="input">

<input class="text" type="text" size="10" name="68179X12X4023" id="answer68179X12X4023" value="" onkeyup="noop_checkconditions(this.value, this.name, this.type);" onkeypress="inputField = event.srcElement ? event.srcElement : event.target || event.currentTarget; if (inputField.value.indexOf('.')>0 && String.fromCharCode(getkey(event))=='.') return false; return goodchars(event,'0123456789.')" onblur="calculateValue68179X12X402(3)" maxlength="25" />

</span>
</li>
<li>
<label for="answer68179X12X4024">Diabetes Fonds</label>
<span class="input">

<input class="text" type="text" size="10" name="68179X12X4024" id="answer68179X12X4024" value="" onkeyup="noop_checkconditions(this.value, this.name, this.type);" onkeypress="inputField = event.srcElement ? event.srcElement : event.target || event.currentTarget; if (inputField.value.indexOf('.')>0 && String.fromCharCode(getkey(event))=='.') return false; return goodchars(event,'0123456789.')" onblur="calculateValue68179X12X402(3)" maxlength="25" />


</span>
</li>
<li>
<label for="answer68179X12X4025">Hersenstichting Nederland</label>
<span class="input">

<input class="text" type="text" size="10" name="68179X12X4025" id="answer68179X12X4025" value="" onkeyup="noop_checkconditions(this.value, this.name, this.type);" onkeypress="inputField = event.srcElement ? event.srcElement : event.target || event.currentTarget; if (inputField.value.indexOf('.')>0 && String.fromCharCode(getkey(event))=='.') return false; return goodchars(event,'0123456789.')" onblur="calculateValue68179X12X402(3)" maxlength="25" />

</span>
</li>
<li>

<label for="answer68179X12X4026">Jantje Beton</label>
<span class="input">

<input class="text" type="text" size="10" name="68179X12X4026" id="answer68179X12X4026" value="" onkeyup="noop_checkconditions(this.value, this.name, this.type);" onkeypress="inputField = event.srcElement ? event.srcElement : event.target || event.currentTarget; if (inputField.value.indexOf('.')>0 && String.fromCharCode(getkey(event))=='.') return false; return goodchars(event,'0123456789.')" onblur="calculateValue68179X12X402(3)" maxlength="25" />

</span>
</li>
<li>
<label for="answer68179X12X4027">Jump (Kinderhartenfonds)</label>
<span class="input">

<input class="text" type="text" size="10" name="68179X12X4027" id="answer68179X12X4027" value="" onkeyup="noop_checkconditions(this.value, this.name, this.type);" onkeypress="inputField = event.srcElement ? event.srcElement : event.target || event.currentTarget; if (inputField.value.indexOf('.')>0 && String.fromCharCode(getkey(event))=='.') return false; return goodchars(event,'0123456789.')" onblur="calculateValue68179X12X402(3)" maxlength="25" />


</span>
</li>
<li>
<label for="answer68179X12X4028">Kika (Kinderen Kanker Vrij)</label>
<span class="input">

<input class="text" type="text" size="10" name="68179X12X4028" id="answer68179X12X4028" value="" onkeyup="noop_checkconditions(this.value, this.name, this.type);" onkeypress="inputField = event.srcElement ? event.srcElement : event.target || event.currentTarget; if (inputField.value.indexOf('.')>0 && String.fromCharCode(getkey(event))=='.') return false; return goodchars(event,'0123456789.')" onblur="calculateValue68179X12X402(3)" maxlength="25" />

</span>
</li>
<li>
<label for="answer68179X12X4029">KWF Kankerbestrijding</label>

<span class="input">

<input class="text" type="text" size="10" name="68179X12X4029" id="answer68179X12X4029" value="" onkeyup="noop_checkconditions(this.value, this.name, this.type);" onkeypress="inputField = event.srcElement ? event.srcElement : event.target || event.currentTarget; if (inputField.value.indexOf('.')>0 && String.fromCharCode(getkey(event))=='.') return false; return goodchars(event,'0123456789.')" onblur="calculateValue68179X12X402(3)" maxlength="25" />

</span>
</li>
<li>
<label for="answer68179X12X40210">Natuurmonumenten</label>
<span class="input">

<input class="text" type="text" size="10" name="68179X12X40210" id="answer68179X12X40210" value="" onkeyup="noop_checkconditions(this.value, this.name, this.type);" onkeypress="inputField = event.srcElement ? event.srcElement : event.target || event.currentTarget; if (inputField.value.indexOf('.')>0 && String.fromCharCode(getkey(event))=='.') return false; return goodchars(event,'0123456789.')" onblur="calculateValue68179X12X402(3)" maxlength="25" />

</span>
</li>

<li>
<label for="answer68179X12X40211">Nederland War Child</label>
<span class="input">

<input class="text" type="text" size="10" name="68179X12X40211" id="answer68179X12X40211" value="" onkeyup="noop_checkconditions(this.value, this.name, this.type);" onkeypress="inputField = event.srcElement ? event.srcElement : event.target || event.currentTarget; if (inputField.value.indexOf('.')>0 && String.fromCharCode(getkey(event))=='.') return false; return goodchars(event,'0123456789.')" onblur="calculateValue68179X12X402(3)" maxlength="25" />

</span>
</li>
<li>
<label for="answer68179X12X40212">Nederlandse Cystic Fibrosis Stichting</label>
<span class="input">

<input class="text" type="text" size="10" name="68179X12X40212" id="answer68179X12X40212" value="" onkeyup="noop_checkconditions(this.value, this.name, this.type);" onkeypress="inputField = event.srcElement ? event.srcElement : event.target || event.currentTarget; if (inputField.value.indexOf('.')>0 && String.fromCharCode(getkey(event))=='.') return false; return goodchars(event,'0123456789.')" onblur="calculateValue68179X12X402(3)" maxlength="25" />


</span>
</li>
<li>
<label for="answer68179X12X40213">Nederlandse Rode Kruis</label>
<span class="input">

<input class="text" type="text" size="10" name="68179X12X40213" id="answer68179X12X40213" value="" onkeyup="noop_checkconditions(this.value, this.name, this.type);" onkeypress="inputField = event.srcElement ? event.srcElement : event.target || event.currentTarget; if (inputField.value.indexOf('.')>0 && String.fromCharCode(getkey(event))=='.') return false; return goodchars(event,'0123456789.')" onblur="calculateValue68179X12X402(3)" maxlength="25" />

</span>
</li>
<li>

<label for="answer68179X12X40214">Nelson Mandela Kinderfonds</label>
<span class="input">

<input class="text" type="text" size="10" name="68179X12X40214" id="answer68179X12X40214" value="" onkeyup="noop_checkconditions(this.value, this.name, this.type);" onkeypress="inputField = event.srcElement ? event.srcElement : event.target || event.currentTarget; if (inputField.value.indexOf('.')>0 && String.fromCharCode(getkey(event))=='.') return false; return goodchars(event,'0123456789.')" onblur="calculateValue68179X12X402(3)" maxlength="25" />

</span>
</li>
<li>
<label for="answer68179X12X40215">Nierstichting Nederland</label>
<span class="input">

<input class="text" type="text" size="10" name="68179X12X40215" id="answer68179X12X40215" value="" onkeyup="noop_checkconditions(this.value, this.name, this.type);" onkeypress="inputField = event.srcElement ? event.srcElement : event.target || event.currentTarget; if (inputField.value.indexOf('.')>0 && String.fromCharCode(getkey(event))=='.') return false; return goodchars(event,'0123456789.')" onblur="calculateValue68179X12X402(3)" maxlength="25" />


</span>
</li>
<li>
<label for="answer68179X12X40216">Novib</label>
<span class="input">

<input class="text" type="text" size="10" name="68179X12X40216" id="answer68179X12X40216" value="" onkeyup="noop_checkconditions(this.value, this.name, this.type);" onkeypress="inputField = event.srcElement ? event.srcElement : event.target || event.currentTarget; if (inputField.value.indexOf('.')>0 && String.fromCharCode(getkey(event))=='.') return false; return goodchars(event,'0123456789.')" onblur="calculateValue68179X12X402(3)" maxlength="25" />

</span>
</li>
<li>
<label for="answer68179X12X40217">Reumafonds</label>

<span class="input">

<input class="text" type="text" size="10" name="68179X12X40217" id="answer68179X12X40217" value="" onkeyup="noop_checkconditions(this.value, this.name, this.type);" onkeypress="inputField = event.srcElement ? event.srcElement : event.target || event.currentTarget; if (inputField.value.indexOf('.')>0 && String.fromCharCode(getkey(event))=='.') return false; return goodchars(event,'0123456789.')" onblur="calculateValue68179X12X402(3)" maxlength="25" />

</span>
</li>
<li>
<label for="answer68179X12X40218">Ronald McDonald fonds</label>
<span class="input">

<input class="text" type="text" size="10" name="68179X12X40218" id="answer68179X12X40218" value="" onkeyup="noop_checkconditions(this.value, this.name, this.type);" onkeypress="inputField = event.srcElement ? event.srcElement : event.target || event.currentTarget; if (inputField.value.indexOf('.')>0 && String.fromCharCode(getkey(event))=='.') return false; return goodchars(event,'0123456789.')" onblur="calculateValue68179X12X402(3)" maxlength="25" />

</span>
</li>

<li>
<label for="answer68179X12X40219">SOS Kinderdorpen</label>
<span class="input">

<input class="text" type="text" size="10" name="68179X12X40219" id="answer68179X12X40219" value="" onkeyup="noop_checkconditions(this.value, this.name, this.type);" onkeypress="inputField = event.srcElement ? event.srcElement : event.target || event.currentTarget; if (inputField.value.indexOf('.')>0 && String.fromCharCode(getkey(event))=='.') return false; return goodchars(event,'0123456789.')" onblur="calculateValue68179X12X402(3)" maxlength="25" />

</span>
</li>
<li>
<label for="answer68179X12X40220">Unicef</label>
<span class="input">

<input class="text" type="text" size="10" name="68179X12X40220" id="answer68179X12X40220" value="" onkeyup="noop_checkconditions(this.value, this.name, this.type);" onkeypress="inputField = event.srcElement ? event.srcElement : event.target || event.currentTarget; if (inputField.value.indexOf('.')>0 && String.fromCharCode(getkey(event))=='.') return false; return goodchars(event,'0123456789.')" onblur="calculateValue68179X12X402(3)" maxlength="25" />


</span>
</li>
<li>
<label for="answer68179X12X40221">Wereld Natuur Fonds</label>
<span class="input">

<input class="text" type="text" size="10" name="68179X12X40221" id="answer68179X12X40221" value="" onkeyup="noop_checkconditions(this.value, this.name, this.type);" onkeypress="inputField = event.srcElement ? event.srcElement : event.target || event.currentTarget; if (inputField.value.indexOf('.')>0 && String.fromCharCode(getkey(event))=='.') return false; return goodchars(event,'0123456789.')" onblur="calculateValue68179X12X402(3)" maxlength="25" />

</span>
</li>
<li>

<label for="answer68179X12X40222">Zonnebloem</label>
<span class="input">

<input class="text" type="text" size="10" name="68179X12X40222" id="answer68179X12X40222" value="" onkeyup="noop_checkconditions(this.value, this.name, this.type);" onkeypress="inputField = event.srcElement ? event.srcElement : event.target || event.currentTarget; if (inputField.value.indexOf('.')>0 && String.fromCharCode(getkey(event))=='.') return false; return goodchars(event,'0123456789.')" onblur="calculateValue68179X12X402(3)" maxlength="25" />

</span>
</li>
<li>
<label for="answer68179X12X40223">Een ander goed doel op het gebied van natuur en milieu</label>
<span class="input">

<input class="text" type="text" size="10" name="68179X12X40223" id="answer68179X12X40223" value="" onkeyup="noop_checkconditions(this.value, this.name, this.type);" onkeypress="inputField = event.srcElement ? event.srcElement : event.target || event.currentTarget; if (inputField.value.indexOf('.')>0 && String.fromCharCode(getkey(event))=='.') return false; return goodchars(event,'0123456789.')" onblur="calculateValue68179X12X402(3)" maxlength="25" />


</span>
</li>
<li>
<label for="answer68179X12X40224">Een ander goed doel op het gebied van gezondheid</label>
<span class="input">

<input class="text" type="text" size="10" name="68179X12X40224" id="answer68179X12X40224" value="" onkeyup="noop_checkconditions(this.value, this.name, this.type);" onkeypress="inputField = event.srcElement ? event.srcElement : event.target || event.currentTarget; if (inputField.value.indexOf('.')>0 && String.fromCharCode(getkey(event))=='.') return false; return goodchars(event,'0123456789.')" onblur="calculateValue68179X12X402(3)" maxlength="25" />

</span>
</li>
<li>
<label for="answer68179X12X40225">Een ander goed doel op het gebied van welzijn en cultuur</label>

<span class="input">

<input class="text" type="text" size="10" name="68179X12X40225" id="answer68179X12X40225" value="" onkeyup="noop_checkconditions(this.value, this.name, this.type);" onkeypress="inputField = event.srcElement ? event.srcElement : event.target || event.currentTarget; if (inputField.value.indexOf('.')>0 && String.fromCharCode(getkey(event))=='.') return false; return goodchars(event,'0123456789.')" onblur="calculateValue68179X12X402(3)" maxlength="25" />

</span>
</li>
<li>
<label for="answer68179X12X40226">Een ander goed doel op het gebied van internationale hulp</label>
<span class="input">

<input class="text" type="text" size="10" name="68179X12X40226" id="answer68179X12X40226" value="" onkeyup="noop_checkconditions(this.value, this.name, this.type);" onkeypress="inputField = event.srcElement ? event.srcElement : event.target || event.currentTarget; if (inputField.value.indexOf('.')>0 && String.fromCharCode(getkey(event))=='.') return false; return goodchars(event,'0123456789.')" onblur="calculateValue68179X12X402(3)" maxlength="25" />

</span>
</li>

<li class='multiplenumerichelp'>
<label for="remainingvalue_68179X12X402">
Nog te gaan:
</label>
<span>

<input size=10 type='text' id="remainingvalue_68179X12X402" disabled="disabled" />

</span>
</li>
<li class='multiplenumerichelp'>
<label for="totalvalue_68179X12X402">
Totaal:

</label>
<span>

<input size=10 type="text" id="totalvalue_68179X12X402" disabled="disabled" />

</span>
</li>
</ul>
<input type="hidden" name="qattribute_answer[]" value="68179X12X402" />
<input type="hidden" name="qattribute_answer68179X12X402" />
<script type='text/javascript'>
function calculateValue68179X12X402(method) {
if(document.limesurvey.answer68179X12X4021.value == '') { document.limesurvey.answer68179X12X4021.value = 0; }
if(document.limesurvey.answer68179X12X4022.value == '') { document.limesurvey.answer68179X12X4022.value = 0; }
if(document.limesurvey.answer68179X12X4023.value == '') { document.limesurvey.answer68179X12X4023.value = 0; }
if(document.limesurvey.answer68179X12X4024.value == '') { document.limesurvey.answer68179X12X4024.value = 0; }
if(document.limesurvey.answer68179X12X4025.value == '') { document.limesurvey.answer68179X12X4025.value = 0; }
if(document.limesurvey.answer68179X12X4026.value == '') { document.limesurvey.answer68179X12X4026.value = 0; }
if(document.limesurvey.answer68179X12X4027.value == '') { document.limesurvey.answer68179X12X4027.value = 0; }
if(document.limesurvey.answer68179X12X4028.value == '') { document.limesurvey.answer68179X12X4028.value = 0; }
if(document.limesurvey.answer68179X12X4029.value == '') { document.limesurvey.answer68179X12X4029.value = 0; }
if(document.limesurvey.answer68179X12X40210.value == '') { document.limesurvey.answer68179X12X40210.value = 0; }
if(document.limesurvey.answer68179X12X40211.value == '') { document.limesurvey.answer68179X12X40211.value = 0; }
if(document.limesurvey.answer68179X12X40212.value == '') { document.limesurvey.answer68179X12X40212.value = 0; }
if(document.limesurvey.answer68179X12X40213.value == '') { document.limesurvey.answer68179X12X40213.value = 0; }
if(document.limesurvey.answer68179X12X40214.value == '') { document.limesurvey.answer68179X12X40214.value = 0; }
if(document.limesurvey.answer68179X12X40215.value == '') { document.limesurvey.answer68179X12X40215.value = 0; }
if(document.limesurvey.answer68179X12X40216.value == '') { document.limesurvey.answer68179X12X40216.value = 0; }
if(document.limesurvey.answer68179X12X40217.value == '') { document.limesurvey.answer68179X12X40217.value = 0; }
if(document.limesurvey.answer68179X12X40218.value == '') { document.limesurvey.answer68179X12X40218.value = 0; }
if(document.limesurvey.answer68179X12X40219.value == '') { document.limesurvey.answer68179X12X40219.value = 0; }
if(document.limesurvey.answer68179X12X40220.value == '') { document.limesurvey.answer68179X12X40220.value = 0; }
if(document.limesurvey.answer68179X12X40221.value == '') { document.limesurvey.answer68179X12X40221.value = 0; }
if(document.limesurvey.answer68179X12X40222.value == '') { document.limesurvey.answer68179X12X40222.value = 0; }
if(document.limesurvey.answer68179X12X40223.value == '') { document.limesurvey.answer68179X12X40223.value = 0; }
if(document.limesurvey.answer68179X12X40224.value == '') { document.limesurvey.answer68179X12X40224.value = 0; }
if(document.limesurvey.answer68179X12X40225.value == '') { document.limesurvey.answer68179X12X40225.value = 0; }
if(document.limesurvey.answer68179X12X40226.value == '') { document.limesurvey.answer68179X12X40226.value = 0; }
bob = eval('document.limesurvey.qattribute_answer68179X12X402');
totalvalue_68179X12X402=(parseInt(parseFloat(document.limesurvey.answer68179X12X4021.value)*1000) + parseInt(parseFloat(document.limesurvey.answer68179X12X4022.value)*1000) + parseInt(parseFloat(document.limesurvey.answer68179X12X4023.value)*1000) + parseInt(parseFloat(document.limesurvey.answer68179X12X4024.value)*1000) + parseInt(parseFloat(document.limesurvey.answer68179X12X4025.value)*1000) + parseInt(parseFloat(document.limesurvey.answer68179X12X4026.value)*1000) + parseInt(parseFloat(document.limesurvey.answer68179X12X4027.value)*1000) + parseInt(parseFloat(document.limesurvey.answer68179X12X4028.value)*1000) + parseInt(parseFloat(document.limesurvey.answer68179X12X4029.value)*1000) + parseInt(parseFloat(document.limesurvey.answer68179X12X40210.value)*1000) + parseInt(parseFloat(document.limesurvey.answer68179X12X40211.value)*1000) + parseInt(parseFloat(document.limesurvey.answer68179X12X40212.value)*1000) + parseInt(parseFloat(document.limesurvey.answer68179X12X40213.value)*1000) + parseInt(parseFloat(document.limesurvey.answer68179X12X40214.value)*1000) + parseInt(parseFloat(document.limesurvey.answer68179X12X40215.value)*1000) + parseInt(parseFloat(document.limesurvey.answer68179X12X40216.value)*1000) + parseInt(parseFloat(document.limesurvey.answer68179X12X40217.value)*1000) + parseInt(parseFloat(document.limesurvey.answer68179X12X40218.value)*1000) + parseInt(parseFloat(document.limesurvey.answer68179X12X40219.value)*1000) + parseInt(parseFloat(document.limesurvey.answer68179X12X40220.value)*1000) + parseInt(parseFloat(document.limesurvey.answer68179X12X40221.value)*1000) + parseInt(parseFloat(document.limesurvey.answer68179X12X40222.value)*1000) + parseInt(parseFloat(document.limesurvey.answer68179X12X40223.value)*1000) + parseInt(parseFloat(document.limesurvey.answer68179X12X40224.value)*1000) + parseInt(parseFloat(document.limesurvey.answer68179X12X40225.value)*1000) + parseInt(parseFloat(document.limesurvey.answer68179X12X40226.value)*1000))/1000;
$('#totalvalue_68179X12X402').val(parseFloat(totalvalue_68179X12X402));
var ua = navigator.appVersion.indexOf('MSIE');
var ieAtt = ua != -1 ? 'className' : 'class';
switch(method)
{
case 1:
if (totalvalue_68179X12X402 > 0)
{
bob.value = 'Het antwoord is ongeldig. Het totaal zou minder moeten zijn dan 0';
document.getElementById('totalvalue_68179X12X402').setAttribute(ieAtt,'tip problem');
document.getElementById('max_num_value_68179X12X402').setAttribute(ieAtt,'tip problem');
}
else
{
if (bob.value == '' || bob.value == 'Het antwoord is ongeldig. Het totaal zou minder moeten zijn dan 0')
{
bob.value = '';
document.getElementById('totalvalue_68179X12X402').setAttribute(ieAtt,'tip good');
}
document.getElementById('max_num_value_68179X12X402').setAttribute(ieAtt,'tip good');
}
break;
case 2:
if (totalvalue_68179X12X402 < 0)
{
bob.value = 'Antwoord is ongeldig. Het totaal van alle invoerwaarden moet opgeteld minstens 0 zijn.';
document.getElementById('totalvalue_68179X12X402').setAttribute(ieAtt,'tip problem');
document.getElementById('min_num_value_68179X12X402').setAttribute(ieAtt,'tip problem');
}
else
{
if (bob.value == '' || bob.value == 'Antwoord is ongeldig. Het totaal van alle invoerwaarden moet opgeteld minstens 0 zijn.')
{
bob.value = '';
document.getElementById('totalvalue_68179X12X402').setAttribute(ieAtt,'tip good');
}
document.getElementById('min_num_value_68179X12X402').setAttribute(ieAtt,'tip good');
}
break;
case 3:
remainingvalue = (parseInt(parseFloat(100)*1000) - parseInt(parseFloat(totalvalue_68179X12X402)*1000))/1000;
document.getElementById('remainingvalue_68179X12X402').value=remainingvalue;
if (totalvalue_68179X12X402 == 100)
{
if (bob.value == '' || bob.value == 'Het antwoord is ongeldig. Het totaal zou minder moeten zijn dan 100')
{
bob.value = '';
document.getElementById('totalvalue_68179X12X402').setAttribute(ieAtt,'tip good');
document.getElementById('equals_num_value_68179X12X402').setAttribute(ieAtt,'tip good');
}
}
else
{
bob.value = 'Het antwoord is ongeldig. Het totaal zou minder moeten zijn dan 100';
document.getElementById('totalvalue_68179X12X402').setAttribute(ieAtt,'tip problem');
document.getElementById('equals_num_value_68179X12X402').setAttribute(ieAtt,'tip problem');
}
break;
}
}
calculateValue68179X12X402(3);
</script>

<input type='hidden' name='display68179X12X402' id='display402' value='on' />

</td>
</tr>
<tr>
<td>
<span class="survey-question-help"></span>
</td>
</tr>
</table>
</td>

</tr>
</table>
</div>


<!-- END THE GROUP -->
</td>
</tr>



<!-- PRESENT THE NAVIGATOR -->

<tr>
<td>
<table class="navigatorTable">
<tr>
<td align="center">
<span class="submit-buttons"><input type="hidden" name="move" value="movenext" id="movenext" /><input class='submit' accesskey='p' type='button' onclick="javascript:document.limesurvey.move.value = 'moveprev'; $('#limesurvey').submit();" value=' << Vorige ' name='move2' id='moveprevbtn' />
<input class='submit' type='submit' accesskey='n' onclick="javascript:document.limesurvey.move.value = 'movenext';" value=' Volgende >> ' name='move2' id='movenextbtn' />
</span><br />
<span class="clear-all"><input type='button' name='clearallbtn' value='Afbreken en antwoorden verwijderen' class='clearall' onclick="if (confirm('Wilt u al uw antwoorden verwijderen?')) {window.open('survey.wwavdata.nl/limesurvey/index.php?...clearall&lang=nl', '_top')}" /></span>

<span class="save-all"><input type='button' name='saveallbtn' value='Hervat later' class='saveall' onclick="javascript:document.limesurvey.move.value = this.value;addHiddenField(document.getElementById('limesurvey'),'saveall',this.value);document.getElementById('limesurvey').submit();" disabled='disabled'/></span>
</td>
</tr>
</table>
</td>
</tr>
</table>

<center><font color='red' size='2'>Deze vragenlijst is nu niet actief. Uw antwoorden kunnen niet worden bewaard.</font></center>
<!-- group2.php -->

<input type='hidden' name='thisstep' value='5' id='thisstep' />
<input type='hidden' name='sid' value='68179' id='sid' />
<input type='hidden' name='token' value='' id='token' />
</form>
</div>



</body>
</html>
The administrator has disabled public write access.

fill ranking array with answers from previous question 4 years 9 months ago #59875

  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Team
  • Posts: 5410
  • Thank you received: 1154
  • Karma: 479
Jan, do you get any JavaScript errors? Can you re-activate the survey for me?
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.

fill ranking array with answers from previous question 4 years 9 months ago #59876

The administrator has disabled public write access.

fill ranking array with answers from previous question 4 years 9 months ago #59877

  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Team
  • Posts: 5410
  • Thank you received: 1154
  • Karma: 479
Oops, my mistake - use this:
<script type="text/javascript" charset="utf-8">
 
	$(document).ready(function() {
 
		handleChecked3(MM, NN);
 
		function handleChecked3(q1ID, q2ID) {
 
			// Loop through all hidden Q1 options
			$('#question'+q1ID+' li[id^="javatbd"]:hidden').each(function(i) {
 
				// Find the answer value
				var ansTxt = $('label', this).text();
 
				// Find the corresponding list item in Q2
				var el = $('#question'+q2ID+' label[for^="answer"]').filter(function(){return $(this).text() == ansTxt;}).parent('li:eq(0)');
 
				// Hide the corresponding list item in Q2
				$(el).hide();
 
				// Set the corresponding input in Q2 to 0
				$('input.text', el).val(0);
 
			});
 
			// Hide Q1
			$('#question'+q1ID+'').hide();
 
			// Calculate for sum amount
			calculateValue68179X12X402(3) // NOTE: this needs to use local survey, group and q2 question IDs
		}
	});
 
</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.371 seconds