Hi,
the javascript code I showed works in 2.50/2.73, 3.x and 4.x.
Here version 2.73
So what do you mean saying
This one is for the latest update, but I have to use previous one.
What exact version are you using?
I think you created the array and the "short text" questions well, put them into one group and displayed "group by group".
So, there is obviously a small mistake on your side.
You should show us your approach by sending a lss export of these questions.
Joffm