Hi,
The problem is that when I export the results, even the empty questions are shown
Okay, that's obvious.
But it's just a little bit of work to rearrange the values in your analyzing tool (macro in EXCEL, recode in SPSS, or so)
If you don't want to use the JS workaround, that's the disadvantage.
But you can try the following:
create a multipunch question with the codes of question B (QMB).
create a question of type equation.
In the equation set all codes of QMB to true which refer to the answer of question A
{QMB_1=if(Q1 == 1,"Y","")}
{QMB_2=if(Q1 == 2,"Y","")}
{QMB_3=if(Q1 ==1,"Y","")}
{QMB_4=if(Q1 =

,"Y","")}
...
Then use QMB as array filter for question B.
Both question should be hidden.
Joffm