let inputType; switch(qObject.question_type) { case 'mutiplechoice-multiple': inputType = 'checkbox'; break; default: inputType = 'radio'; }