Similar type of question is answered here How to repeat questions based on select_multiple - #3 by Julien_GM