Now, here's the promised sample.
The idea:
In your 6 "choices" groups you display a pair of the 12 possible combinations.
Each pair is different, no pair double.
To do this, you generate a random oder of the 12 combinations.
I showed then already.
To do this (only with ExpressionScript) I created a question of type "multiple short text" (eMat) as a container to store the results of the equations.
b1 - b12 (base)
r1-r12 (random)
z1-z12 (number
total
Initially I fill the pool with a string of 12 characters as a pool, like "123456789ABC"
{eMat_b1="123456789ABC"}
Now a random numer is generated (from 1 - length of the string)
{eMat_r1=if(is_empty(eMat_r1),rand(1,strlen(eMat_b1)),eMat_r1)}
We store the character at this position.
{eMat_z1=substr(eMat_b1,sum(eMat_r1,-1),1)}
We remove the character from the string to get the next "base" string
{eMat_b2=str_replace(eMat_z1,"",eMat_b1)}
And so on
- Generate a random number
- Stoe the character at the position
- Remove the character from the pool
{eMat_r2=if(is_empty(eMat_r2),rand(1,strlen(eMat_b2)),eMat_r2)}
{eMat_z2=substr(eMat_b2,sum(eMat_r2,-1),1)}
{eMat_b3=str_replace(eMat_z2,"",eMat_b2)}
{eMat_r3=if(is_empty(eMat_r3),rand(1,strlen(eMat_b3)),eMat_r3)}
{eMat_z3=substr(eMat_b3,sum(eMat_r3,-1),1)}
{eMat_b4=str_replace(eMat_z3,"",eMat_b3)}
....
At the end I join all numbers to a result string
{eMat_tot=join("#",eMat_z1,eMat_z2,eMat_z3,eMat_z4,eMat_z5,eMat_z6,eMat_z7,eMat_z8,eMat_z9,eMat_z10,eMat_z11,eMat_b12)}
This is not really necessary - you can work with the values of z1 - z12 as well, instead of the "substr"
You get something like
So in your "choice 1 you compare the combinations of the first two characters, in "choice 2" of the third and fourth, in "choice 3" of the fifth and sixth, and so on.
To do this you taylor the text according to the characters.
Choice 1:
Profile A = 5 -> 1 3 1 (international - Philips - European)
Profile B = 3 -> 1 2 1
Choice 2:
Profile A = 2 -> 1 1 2
Profile B = A (10) -> 2 2 2
...
You see in the sample that I taylored the first item totally, while in the second and third item only the one switching word.
Now the layout.
In the third group I added a "none" column with a different background color.
Please read the manual to understand the used functions, especially the IF(condition,TRUE,FALSE), but also the string functions (substr, str_replace, strlen)
One last remark: The '#' at the start of the "total" string is not necesaary in this case.
It is a relict of a different survey where the function "strpos" was used.
Two more screenshots
Joffm
P.S.
Of course, would be much shorter if you were able to use javascript