

{"id":114538,"date":"2020-11-17T04:28:02","date_gmt":"2020-11-17T12:28:02","guid":{"rendered":"https:\/\/www.questionpro.com\/blog\/?p=114538"},"modified":"2023-01-30T09:52:21","modified_gmt":"2023-01-30T09:52:21","slug":"loop-through-block-of-questions","status":"publish","type":"post","link":"https:\/\/www.questionpro.com\/blog\/loop-through-block-of-questions\/","title":{"rendered":"Now loop through a block of questions without rewriting them"},"content":{"rendered":"<h2><span data-preserver-spaces=\"true\">What is block looping?<\/span><\/h2>\n<p><span data-preserver-spaces=\"true\">Block looping lets you show a block of questions multiple times to the respondents while taking a survey. It means you can iterate through a set of questions dynamically depending on the programmed conditions.<\/span><\/p>\n<p><span data-preserver-spaces=\"true\">For instance, a sportswear company surveys to find out their respondents&#8217; three most favorite soccer teams. They want to know then who is the favorite player from each team. Instead of creating a separate question for each team, the company can use block looping to repeat the question dynamically and select their favorite player.<\/span><\/p>\n<p><span data-preserver-spaces=\"true\">You will need to configure the merge fields using <a href=\"https:\/\/www.questionpro.com\/features\/extraction-with-text-piping-and-looping.html\">piping text<\/a> for each answer option. Enable randomization of looping at the\u00a0<\/span><a class=\"editor-rtfLink\" href=\"https:\/\/www.questionpro.com\/blog\/organize-your-questions-better-with-blocks-survey-blocks\/\" target=\"_blank\" rel=\"noopener noreferrer\"><span data-preserver-spaces=\"true\">survey block<\/span><\/a><span data-preserver-spaces=\"true\">\u00a0level to display question blocks without a fixed sequence.<\/span><\/p>\n<p><span data-preserver-spaces=\"true\">Learn\u00a0<\/span><a class=\"editor-rtfLink\" href=\"https:\/\/www.questionpro.com\/help\/block-looping.html\" target=\"_blank\" rel=\"noopener noreferrer\"><span data-preserver-spaces=\"true\">how to set up block looping in your survey<\/span><\/a><span data-preserver-spaces=\"true\">\u00a0and display a group of questions multiple times.<\/span><\/p>\n<p><span data-preserver-spaces=\"true\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-114539\" src=\"https:\/\/www.questionpro.com\/blog\/wp-content\/uploads\/2020\/11\/block-looping.png\" alt=\"block looping and merge fields\" width=\"1895\" height=\"1512\" \/><\/span><\/p>\n<h2><span data-preserver-spaces=\"true\">Benefits of block looping<\/span><\/h2>\n<ul>\n<li><span data-preserver-spaces=\"true\">Loop through a set of questions: Earlier, you could loop through only one question. Now you can iterate through a block of questions dynamically.<\/span><\/li>\n<li><span data-preserver-spaces=\"true\">Reduces the time required to create a questionnaire: As you don&#8217;t need to add questions multiple times, it reduces the time needed to create a survey. It also reduces the chances of any error and is easy to maintain.<\/span><\/li>\n<li><span data-preserver-spaces=\"true\">Reuse the question(s): You can write a question once and reuse it as many times you want; just define the merge fields and conditions.<\/span><\/li>\n<li><span data-preserver-spaces=\"true\">Loop based on multiple conditions: You get the flexibility to loop through the block of questions depending on various conditions.<\/span><\/li>\n<li><span data-preserver-spaces=\"true\">Randomize loops: Present a block of questions randomly for different options selected by the respondents. For instance, if the respondents selected options 1, 2, and 3 out of 5 options, then enabling the randomization might ask the same set of questions for these options. The order of the loop can be as below:<\/span>\n<ul>\n<li><span data-preserver-spaces=\"true\">Loop 1: Questions for option 1<\/span><\/li>\n<li><span data-preserver-spaces=\"true\">Loop 2: Questions for option 3<\/span><\/li>\n<li><span data-preserver-spaces=\"true\">Loop 3: Questions for option 2<\/span><\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<h2><span data-preserver-spaces=\"true\">How is it different from block randomization?<\/span><\/h2>\n<p><span data-preserver-spaces=\"true\">Using\u00a0<\/span><a class=\"editor-rtfLink\" href=\"https:\/\/www.questionpro.com\/features\/block-randomizer.html\" target=\"_blank\" rel=\"noopener noreferrer\"><span data-preserver-spaces=\"true\">block randomization<\/span><\/a><span data-preserver-spaces=\"true\">, you can display question blocks randomly to the respondents. You can also randomize the order of questions with the block using\u00a0<\/span><a class=\"editor-rtfLink\" href=\"https:\/\/www.questionpro.com\/help\/question-randomization.html\" target=\"_blank\" rel=\"noopener noreferrer\"><span data-preserver-spaces=\"true\">question randomization<\/span><\/a><span data-preserver-spaces=\"true\">.\u00a0<\/span><\/p>\n<p><span data-preserver-spaces=\"true\">Block looping, on the other hand, repeats a block of questions in real-time. You can randomize the order of loops, but the sequence of questions within the block will remain the same.<\/span><\/p>\n<h2><span data-preserver-spaces=\"true\">How is it different from looping logic?<\/span><\/h2>\n<p><span data-preserver-spaces=\"true\">Like block looping, looping survey logic repeats a set of questions. However, the latter is applied at the question level and used with\u00a0<\/span><a class=\"editor-rtfLink\" href=\"https:\/\/www.questionpro.com\/features\/branching.html\" target=\"_blank\" rel=\"noopener noreferrer\"><span data-preserver-spaces=\"true\">skip logic branching<\/span><\/a><span data-preserver-spaces=\"true\">. You can use looping logic with multiple-choice select many questions only.\u00a0<\/span><\/p>\n","protected":false},"excerpt":{"rendered":"<p>What is block looping? Block looping lets you show a block of questions multiple times to the respondents while taking [&hellip;]<\/p>\n","protected":false},"author":86,"featured_media":114546,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_genesis_hide_title":false,"_genesis_hide_breadcrumbs":false,"_genesis_hide_singular_image":false,"_genesis_hide_footer_widgets":false,"_genesis_custom_body_class":"","_genesis_custom_post_class":"","_genesis_layout":"","footnotes":""},"categories":[270,187],"tags":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.4 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Now loop through a block of questions without rewriting them | QuestionPro<\/title>\n<meta name=\"description\" content=\"What is block looping? Block looping lets you show a block of questions multiple times to the respondents while taking a survey. It means you can iterate\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.questionpro.com\/blog\/loop-through-block-of-questions\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Now loop through a block of questions without rewriting them | QuestionPro\" \/>\n<meta property=\"og:description\" content=\"What is block looping? Block looping lets you show a block of questions multiple times to the respondents while taking a survey. It means you can iterate\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.questionpro.com\/blog\/loop-through-block-of-questions\/\" \/>\n<meta property=\"og:site_name\" content=\"QuestionPro\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/questionpro\" \/>\n<meta property=\"article:published_time\" content=\"2020-11-17T12:28:02+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2023-01-30T09:52:21+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.questionpro.com\/blog\/wp-content\/uploads\/2020\/11\/Block-looping.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"992\" \/>\n\t<meta property=\"og:image:height\" content=\"594\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"Adi Bhat\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@questionpro\" \/>\n<meta name=\"twitter:site\" content=\"@questionpro\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Adi Bhat\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"3 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/www.questionpro.com\/blog\/loop-through-block-of-questions\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.questionpro.com\/blog\/loop-through-block-of-questions\/\"},\"author\":{\"name\":\"Adi Bhat\",\"@id\":\"https:\/\/www.questionpro.com\/blog\/#\/schema\/person\/6240dce6e1901b1a6c7f3dbd3e22567f\"},\"headline\":\"Now loop through a block of questions without rewriting them\",\"datePublished\":\"2020-11-17T12:28:02+00:00\",\"dateModified\":\"2023-01-30T09:52:21+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.questionpro.com\/blog\/loop-through-block-of-questions\/\"},\"wordCount\":435,\"publisher\":{\"@id\":\"https:\/\/www.questionpro.com\/blog\/#organization\"},\"articleSection\":[\"New Features\",\"Surveys\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.questionpro.com\/blog\/loop-through-block-of-questions\/\",\"url\":\"https:\/\/www.questionpro.com\/blog\/loop-through-block-of-questions\/\",\"name\":\"Now loop through a block of questions without rewriting them | QuestionPro\",\"isPartOf\":{\"@id\":\"https:\/\/www.questionpro.com\/blog\/#website\"},\"datePublished\":\"2020-11-17T12:28:02+00:00\",\"dateModified\":\"2023-01-30T09:52:21+00:00\",\"description\":\"What is block looping? Block looping lets you show a block of questions multiple times to the respondents while taking a survey. It means you can iterate\",\"breadcrumb\":{\"@id\":\"https:\/\/www.questionpro.com\/blog\/loop-through-block-of-questions\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.questionpro.com\/blog\/loop-through-block-of-questions\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.questionpro.com\/blog\/loop-through-block-of-questions\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.questionpro.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"QuestionPro\",\"item\":\"https:\/\/www.questionpro.com\/blog\/category\/questionpro\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"New Features\",\"item\":\"https:\/\/www.questionpro.com\/blog\/category\/questionpro\/new-features\/\"},{\"@type\":\"ListItem\",\"position\":4,\"name\":\"Now loop through a block of questions without rewriting them\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.questionpro.com\/blog\/#website\",\"url\":\"https:\/\/www.questionpro.com\/blog\/\",\"name\":\"QuestionPro\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\/\/www.questionpro.com\/blog\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.questionpro.com\/blog\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/www.questionpro.com\/blog\/#organization\",\"name\":\"QuestionPro\",\"url\":\"https:\/\/www.questionpro.com\/blog\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.questionpro.com\/blog\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/www.questionpro.com\/blog\/wp-content\/uploads\/2022\/10\/questionpro-logo.svg\",\"contentUrl\":\"https:\/\/www.questionpro.com\/blog\/wp-content\/uploads\/2022\/10\/questionpro-logo.svg\",\"caption\":\"QuestionPro\"},\"image\":{\"@id\":\"https:\/\/www.questionpro.com\/blog\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/questionpro\",\"https:\/\/twitter.com\/questionpro\",\"https:\/\/www.linkedin.com\/company\/questionpro\/\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.questionpro.com\/blog\/#\/schema\/person\/6240dce6e1901b1a6c7f3dbd3e22567f\",\"name\":\"Adi Bhat\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.questionpro.com\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/33be79da19de28bbea9b5a059532a027?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/33be79da19de28bbea9b5a059532a027?s=96&d=mm&r=g\",\"caption\":\"Adi Bhat\"},\"description\":\"Aditya Bhat, a.k.a. \u2018Adi\u2019, is a thought leader in market strategy and business development. He leads QuestionPro's sales teams to partner with companies, government organizations, and nonprofit institution.\",\"sameAs\":[\"https:\/\/www.questionpro.com\/\"],\"url\":\"https:\/\/www.questionpro.com\/blog\/author\/adityabhat\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Now loop through a block of questions without rewriting them | QuestionPro","description":"What is block looping? Block looping lets you show a block of questions multiple times to the respondents while taking a survey. It means you can iterate","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.questionpro.com\/blog\/loop-through-block-of-questions\/","og_locale":"en_US","og_type":"article","og_title":"Now loop through a block of questions without rewriting them | QuestionPro","og_description":"What is block looping? Block looping lets you show a block of questions multiple times to the respondents while taking a survey. It means you can iterate","og_url":"https:\/\/www.questionpro.com\/blog\/loop-through-block-of-questions\/","og_site_name":"QuestionPro","article_publisher":"https:\/\/www.facebook.com\/questionpro","article_published_time":"2020-11-17T12:28:02+00:00","article_modified_time":"2023-01-30T09:52:21+00:00","og_image":[{"width":992,"height":594,"url":"https:\/\/www.questionpro.com\/blog\/wp-content\/uploads\/2020\/11\/Block-looping.jpg","type":"image\/jpeg"}],"author":"Adi Bhat","twitter_card":"summary_large_image","twitter_creator":"@questionpro","twitter_site":"@questionpro","twitter_misc":{"Written by":"Adi Bhat","Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.questionpro.com\/blog\/loop-through-block-of-questions\/#article","isPartOf":{"@id":"https:\/\/www.questionpro.com\/blog\/loop-through-block-of-questions\/"},"author":{"name":"Adi Bhat","@id":"https:\/\/www.questionpro.com\/blog\/#\/schema\/person\/6240dce6e1901b1a6c7f3dbd3e22567f"},"headline":"Now loop through a block of questions without rewriting them","datePublished":"2020-11-17T12:28:02+00:00","dateModified":"2023-01-30T09:52:21+00:00","mainEntityOfPage":{"@id":"https:\/\/www.questionpro.com\/blog\/loop-through-block-of-questions\/"},"wordCount":435,"publisher":{"@id":"https:\/\/www.questionpro.com\/blog\/#organization"},"articleSection":["New Features","Surveys"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/www.questionpro.com\/blog\/loop-through-block-of-questions\/","url":"https:\/\/www.questionpro.com\/blog\/loop-through-block-of-questions\/","name":"Now loop through a block of questions without rewriting them | QuestionPro","isPartOf":{"@id":"https:\/\/www.questionpro.com\/blog\/#website"},"datePublished":"2020-11-17T12:28:02+00:00","dateModified":"2023-01-30T09:52:21+00:00","description":"What is block looping? Block looping lets you show a block of questions multiple times to the respondents while taking a survey. It means you can iterate","breadcrumb":{"@id":"https:\/\/www.questionpro.com\/blog\/loop-through-block-of-questions\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.questionpro.com\/blog\/loop-through-block-of-questions\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.questionpro.com\/blog\/loop-through-block-of-questions\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.questionpro.com\/blog\/"},{"@type":"ListItem","position":2,"name":"QuestionPro","item":"https:\/\/www.questionpro.com\/blog\/category\/questionpro\/"},{"@type":"ListItem","position":3,"name":"New Features","item":"https:\/\/www.questionpro.com\/blog\/category\/questionpro\/new-features\/"},{"@type":"ListItem","position":4,"name":"Now loop through a block of questions without rewriting them"}]},{"@type":"WebSite","@id":"https:\/\/www.questionpro.com\/blog\/#website","url":"https:\/\/www.questionpro.com\/blog\/","name":"QuestionPro","description":"","publisher":{"@id":"https:\/\/www.questionpro.com\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.questionpro.com\/blog\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.questionpro.com\/blog\/#organization","name":"QuestionPro","url":"https:\/\/www.questionpro.com\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.questionpro.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/www.questionpro.com\/blog\/wp-content\/uploads\/2022\/10\/questionpro-logo.svg","contentUrl":"https:\/\/www.questionpro.com\/blog\/wp-content\/uploads\/2022\/10\/questionpro-logo.svg","caption":"QuestionPro"},"image":{"@id":"https:\/\/www.questionpro.com\/blog\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/questionpro","https:\/\/twitter.com\/questionpro","https:\/\/www.linkedin.com\/company\/questionpro\/"]},{"@type":"Person","@id":"https:\/\/www.questionpro.com\/blog\/#\/schema\/person\/6240dce6e1901b1a6c7f3dbd3e22567f","name":"Adi Bhat","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.questionpro.com\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/33be79da19de28bbea9b5a059532a027?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/33be79da19de28bbea9b5a059532a027?s=96&d=mm&r=g","caption":"Adi Bhat"},"description":"Aditya Bhat, a.k.a. \u2018Adi\u2019, is a thought leader in market strategy and business development. He leads QuestionPro's sales teams to partner with companies, government organizations, and nonprofit institution.","sameAs":["https:\/\/www.questionpro.com\/"],"url":"https:\/\/www.questionpro.com\/blog\/author\/adityabhat\/"}]}},"featured_image_src":"https:\/\/www.questionpro.com\/blog\/wp-content\/uploads\/2020\/11\/Block-looping.jpg","featured_image_src_square":"https:\/\/www.questionpro.com\/blog\/wp-content\/uploads\/2020\/11\/Block-looping.jpg","author_info":{"display_name":"Adi Bhat","author_link":"https:\/\/www.questionpro.com\/blog\/author\/adityabhat\/"},"_links":{"self":[{"href":"https:\/\/www.questionpro.com\/blog\/wp-json\/wp\/v2\/posts\/114538"}],"collection":[{"href":"https:\/\/www.questionpro.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.questionpro.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.questionpro.com\/blog\/wp-json\/wp\/v2\/users\/86"}],"replies":[{"embeddable":true,"href":"https:\/\/www.questionpro.com\/blog\/wp-json\/wp\/v2\/comments?post=114538"}],"version-history":[{"count":1,"href":"https:\/\/www.questionpro.com\/blog\/wp-json\/wp\/v2\/posts\/114538\/revisions"}],"predecessor-version":[{"id":776344,"href":"https:\/\/www.questionpro.com\/blog\/wp-json\/wp\/v2\/posts\/114538\/revisions\/776344"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.questionpro.com\/blog\/wp-json\/wp\/v2\/media\/114546"}],"wp:attachment":[{"href":"https:\/\/www.questionpro.com\/blog\/wp-json\/wp\/v2\/media?parent=114538"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.questionpro.com\/blog\/wp-json\/wp\/v2\/categories?post=114538"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.questionpro.com\/blog\/wp-json\/wp\/v2\/tags?post=114538"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}