LimeSurvey version?
Are both questions on the same page and sequential?
Are both questions on the same page and sequential?
<script type="text/javascript" charset="utf-8">
$(document).on('ready pjax:scriptcomplete',function(){
// Identify the questions
var q1ID = {QID};
var q1 = $('#question'+q1ID);
var q2 = $(q1).nextAll('.multiple-opt:eq(0)');
var q2ID = $(q2).attr('id').replace(/question/, '');
// Loop through the Q1 sub-questions
$('div.answer-item', q1).each(function(i) {
// Move the corresponding Q2 sub-question
var thisCode = $(this).attr('id').split('X'+q1ID)[1];
$('div.subquestion-list', q2).append($('div.answer-item[id$="X'+q2ID+thisCode+'"]', q2).parent());
});
});
</script>
To use subquestion validation, you need something like thisteracomp wrote: Seems that spaces are 99% of my problem, so might be all I need.
Where do I add the equation? I've tried: {str_replace(" ","",userdata_email)} in the question "sub-question validation expression" but that does not appear to fire...at least not in the Preview Question interface.