Hi! Does the current LimeSurvey 3+ Expression Manager have a variable for the current page or step?
For example, assume I have 10 question groups. All groups are in the same randomization group. I only want to show 5 random groups and hide the remaining 5. Now, if EM has a variable for the current page (e.g., "CURRENT_PAGE"), then I could simply use relevance equation "CURRENT_PAGE<6" and that's it.
As all hidden/skipped pages are at the end, the problem is solvable simply by knowing the current page number.
If this is not (yet) possible, could you help me doing it using JavaScript? On the basis of my
previous problem
, I assume the code should be something like this:
Code:
<script type='text/javascript'>
$(document).ready(function() {
var N_current = $("#thisstep").val();
if (N_current>5) {
$(".group-name").??????? <----- How to hide/skip current group?
}
});
</script>
I'm grateful for any input on this. Thanks.