Hi, here is a prototype with a slightly different approach.
I used the property .gseq
Qcode.gseq the sequential number of the group, starting from 0 {gender.gseq}
gseq counts the number of a group starting with "0".
In your survey you start with 8 fixed groups (sequential number 0-7)
followed by 2 random groups (sequential number 8 and 9),
another fixed group (sequential number 10)
Now you want to display two more random groups which will have the sequential numbers 11 and 12.
So your relevance equation is
QCode.gseq<13 And as QCode I used the code of the first question of the group.
Then I used a question of type text display to show the videos instead of showing them in the group description.
That's a personal attitude. I don't like to misuse this description. In my opinion it should be used for intenal use in teams to describe what this group is used for.
Some general things:
Of course you have to validate some questions. At the moment I am able to enter a year of birth like 1234.
And here is a script to force the input of a correct postcode (format: "1234 AB".
Code:
<script src="https://cdnjs.cloudflare.com/ajax/libs/inputmask/4.0.9/jquery.inputmask.bundle.min.js"></script>
<script type="text/javascript" charset="utf-8">
$(document).on('ready pjax:scriptcomplete',function(){
$('#question{QID} input[type="text"]').inputmask({
'mask': '9999 AA',
'placeholder': '_',
'removeMaskOnSubmit': false,
'rightAlign': false,
});
});
</script>
All the best
Joffm
P.S.
Regarding your question about the thumbnails:
In my opinion you can do this by a real different solution.
In a question of type "short text" create four random numbers out of 8 (by javascript)
Result: "7246", meaning
1st group displays video 7.
2nd group displays video 2.
3rd group displays video 4.
4th group displays video 6.
So you will have only 4 fixed groups that show different videos.
Advantage: You know that video 7 and video 2 were displayed and are able to show these thumbnails in the comparison question.
Disadvantage: In the database and your exported results in the columns of group1 you will find the results of all videos. You have to restructure the data (e.g. by an EXCEL macro) according to the created random string.
But maybe somebodey else has an idea using the randomization by "randomization group name"