switch (question.type) { case DRAG_AND_DROP_TEXT: answerOrder.push(question.dropspots.map((dropspots: any) => dropspots.id)); break; case RANKING_TEXT: answerOrder.push(question.response.map((response: any) => response.id)); break; case SINGLE_CHOICE: case MULTIPLE_CHOICE: case STATEMENT_CHOICE: case SINGLE_CHOICE_IMAGE: answerOrder.push(question.answers.map((answer: any) => answer.id)); break; default: answerOrder.push([]); }
Preview:
downloadDownload PNG
downloadDownload JPEG
downloadDownload SVG
Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!
Click to optimize width for Twitter