Dear all,
thanks to you guys I was able to write epoch time stamps in hidden short text variables (
see thread
).
I use this code to fill the text question and to hide it:
Code:
<script type="text/javascript" charset="utf-8">
$(document).ready(function(){
if($('#question{QID} input.text').val() == '') {
$('#question{QID} input.text').val(new Date().getTime());
}
});
</script>
<script type='text/javascript'> document.getElementById('questionQ').style.display='none'; </script>
That was all working out fine. Until I needed to impose conditions on these variables.
I have two randomly assigned (rand(1,2) experimental groups in the survey and each group is only shown half the questions with their corresponding time marker-questions.
So I assigned conditions to the markers and now they are visible all the time. Seems like the conditioning overwrites the code to hide them. If I hide them through the menu (hide all the time) they no longer record the time stamp.
The problem is that I need to put the conditions on the time markers, too. If I don´t, they work like they used to but then every participant is shown every question group (with every marker), regardless of his or her condition.
So if anyone has an idea how I can keep my conditions and still have hidden variables that record time I would appreciate it very much!
Thanks and cheers,
J