{"id":6865,"date":"2013-01-17T14:26:29","date_gmt":"2013-01-17T14:26:29","guid":{"rendered":"https:\/\/www.snapsurveys.com\/support-snap11\/?page_id=6865"},"modified":"2022-07-06T15:19:40","modified_gmt":"2022-07-06T14:19:40","slug":"using-routing-to-limit-the-grid-questions-displayed","status":"publish","type":"page","link":"https:\/\/www.snapsurveys.com\/support-snap11\/worksheets\/using-routing-to-limit-the-grid-questions-displayed\/","title":{"rendered":"Using routing to limit the grid questions displayed"},"content":{"rendered":"<p>This worksheet describes setting up a satisfaction survey where respondents select items to rate from a multi-choice list. The associated rating question is only displayed for the selected item. This is done using simple routing.<\/p>\n<p><a name=\"o30064\"><\/a><\/p>\n<h3>Background<\/h3>\n<p>Routing allows you to select which questions are displayed depending on previous answers. There are three types of routing:<\/p>\n<p><strong>Conditionally Ask Question<\/strong><br \/>\nThis only displays a question if certain conditions are met, e.g. if the respondent has given specific answers to one or more previous questions.<\/p>\n<p><strong>Goto On Answer<\/strong><br \/>\nThis moves through the questionnaire depending which answer is selected. It&#8217;s normally used to jump sections of a questionnaire according to the response to a single-response question.<\/p>\n<p><strong>Goto After Question<\/strong><br \/>\nThis moves through the questionnaire after a question has been answered. It&#8217;s normally used to jump irrelevant sections of a questionnaire.<\/p>\n<p><a name=\"o30066\"><\/a><\/p>\n<h3>Summary of steps<\/h3>\n<p>This worksheet describes how to set up routing so that only the appropriate elements in a grid question are displayed.<\/p>\n<ul>\n<li><a id=\"h30084\" title=\"Step 1: Create the conditions\" href=\"#o30067\" target=\"_self\" rel=\"noopener\">Step 1: Create the conditions<\/a><\/li>\n<li><a id=\"h30085\" title=\"Step 2: Put in a page break\" href=\"#o30077\" target=\"_self\" rel=\"noopener\">Step 2: Put in a page break<\/a><\/li>\n<li><a id=\"h30086\" title=\"Step 3: Publish and test your survey\" href=\"#o30079\" target=\"_self\" rel=\"noopener\">Step 3: Publish and test your survey<\/a><\/li>\n<\/ul>\n<div>\n<p><a name=\"o30067\"><\/a><\/p>\n<h3>Step 1: Create the conditions<\/h3>\n<p>This example uses a multi-choice question for respondents to select which facilities they have used. They can choose as many as they wish.The survey then offers a rating scale for the facilities. The routing conditions means that the rating scale only displays questions about the facilities they have used.<\/p>\n<ol>\n<li>Open the <strong>Questionnaire <\/strong>window of your survey.<\/li>\n<li>Create the multi-choice question if you have not already done so. This example asks which fitness equipment people have used.\n<div>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-15746 size-full\" src=\"https:\/\/www.snapsurveys.com\/support-snap11\/wp-content\/uploads\/2013\/01\/gymn_stuff.png\" alt=\"Screenshot of gymn equipment question\" width=\"484\" height=\"594\" \/><\/p>\n<\/div>\n<\/li>\n<li>Select the first line of the first grid section, (Q2.a) <strong>Rowing machine<\/strong><\/li>\n<li>Click <img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-14140\" src=\"https:\/\/www.snapsurveys.com\/support-snap11\/wp-content\/uploads\/2014\/03\/routing.png\" alt=\"Routing button\" width=\"20\" height=\"19\" \/>\u00a0to open the Routing Rules dialog for that question.\n<div>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-15749 size-full\" src=\"https:\/\/www.snapsurveys.com\/support-snap11\/wp-content\/uploads\/2013\/01\/rout_rules_q2a.png\" alt=\"Empty routing dialog for q2a\" width=\"428\" height=\"188\" \/><\/p>\n<\/div>\n<\/li>\n<li>Click<strong> [Add] <\/strong>to create a routing rule.\n<div>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-15747 size-full\" src=\"https:\/\/www.snapsurveys.com\/support-snap11\/wp-content\/uploads\/2013\/01\/new_cond_askw7.png\" alt=\"New routing instruction dialog: conditionally ask\" width=\"267\" height=\"135\" \/><\/p>\n<\/div>\n<\/li>\n<li>Set the type to be Conditionally Ask Question and click <strong>[OK]<\/strong>. The <strong>Rule Details<\/strong> dialog appears. Enter <strong>q1=1<\/strong> in the <strong>If<\/strong> field. This will cause the first question of the grid to be displayed if the respondent has selected code 1 (Rowing machine) in response to question 1.\n<div><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-15743 size-full\" src=\"https:\/\/www.snapsurveys.com\/support-snap11\/wp-content\/uploads\/2013\/01\/ask_q_ifq1_1w7.png\" alt=\"Routing rules dialog showing if q1=1\" width=\"428\" height=\"429\" srcset=\"https:\/\/www.snapsurveys.com\/support-snap11\/wp-content\/uploads\/2013\/01\/ask_q_ifq1_1w7.png 428w, https:\/\/www.snapsurveys.com\/support-snap11\/wp-content\/uploads\/2013\/01\/ask_q_ifq1_1w7-400x400.png 400w, https:\/\/www.snapsurveys.com\/support-snap11\/wp-content\/uploads\/2013\/01\/ask_q_ifq1_1w7-350x350.png 350w\" sizes=\"auto, (max-width: 428px) 100vw, 428px\" \/><\/div>\n<\/li>\n<li>Click <strong>[OK]<\/strong>. A small arrow is added to the start of the question to show that there is routing applied to it. You can double-click this arrow to open the <strong>Routing Rules<\/strong> dialog.<\/li>\n<li>You can add routing to the other questions in the grid by going through the variable properties dialog.Select the second line in the grid and click <img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-15742 size-full\" src=\"https:\/\/www.snapsurveys.com\/support-snap11\/wp-content\/uploads\/2013\/01\/88222.png\" alt=\"Properties button\" width=\"26\" height=\"24\" \/>\u00a0or press the [Alt] + [Enter] keys, to display the <strong>Variable Properties<\/strong> window. Type <strong>unless (q1=2)<\/strong> in the <strong>Not Asked<\/strong> field. This will cause this question to be asked if the respondent has selected code 2 (Exercise bike) in response to question 1.\n<div>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-15750 size-full\" src=\"https:\/\/www.snapsurveys.com\/support-snap11\/wp-content\/uploads\/2013\/01\/var_prop_rout.png\" alt=\"VP: q2 set as a quatity question\" width=\"294\" height=\"378\" \/><\/p>\n<\/div>\n<\/li>\n<li>Repeat for the other lines in the grid, with appropriate condition values. (You can use either method of creating the condition.)<\/li>\n<\/ol>\n<\/div>\n<div>\n<p><a name=\"o30077\"><\/a><\/p>\n<h3>Step 2: Put in a page break<\/h3>\n<p>Select the first line of the grid and press [Ctrl]+[S] to insert a page break before it. This means that bits of the grid will not visibly appear and disappear when the respondent selects or deselects responses to the first question.<\/p>\n<\/div>\n<div>\n<p><a name=\"o30079\"><\/a><\/p>\n<h3>Step 3: Publish and test your survey<\/h3>\n<ol>\n<li>Select <strong>File|Publish<\/strong> to publish your survey.<\/li>\n<li>Select <strong>Publish with preview\u00a0<\/strong>as the method.\n<div>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-15748 size-full\" src=\"https:\/\/www.snapsurveys.com\/support-snap11\/wp-content\/uploads\/2013\/01\/pub_routing.png\" alt=\"Publish Questionnaire with preview\" width=\"413\" height=\"299\" \/><\/p>\n<\/div>\n<\/li>\n<li>Click <strong>[Publish]<\/strong>.<\/li>\n<li>Select some options in the preview window that appears.\n<div>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-15744 size-full\" src=\"https:\/\/www.snapsurveys.com\/support-snap11\/wp-content\/uploads\/2013\/01\/fit_q1.png\" alt=\"First page of fitness suite survey\" width=\"433\" height=\"419\" \/><\/p>\n<\/div>\n<\/li>\n<li>Click<strong> [Next]<\/strong> and confirm that the correct elements of the grid appear.\n<div>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-15745 size-full\" src=\"https:\/\/www.snapsurveys.com\/support-snap11\/wp-content\/uploads\/2013\/01\/fit_q2.png\" alt=\"Second page of fitness suite survey\" width=\"439\" height=\"358\" \/><\/p>\n<\/div>\n<\/li>\n<\/ol>\n<\/div>\n<p><a name=\"o30065\"><\/a><\/p>\n<h3>Conclusion<\/h3>\n<p>This worksheet has described how to set up <strong>Conditionally Ask<\/strong> routing rules so that only the appropriate grid questions are displayed.<\/p>\n<p>For a brief tutorial showing how to use all types of routing, see the <a title=\"\" href=\"https:\/\/www.snapsurveys.com\/help\/25042.htm\" target=\"_blank\" rel=\"noopener\">Snap routing rules tutorial<\/a>.<\/p>\n<p>Examples of If conditions to use are given in <a title=\"\" href=\"https:\/\/www.snapsurveys.com\/help\/21431.htm\" target=\"_blank\" rel=\"noopener\">Examples of If conditions in routing for multi-choice questions<\/a>.<\/p>\n<p>An example of omitting complete grids is given in the worksheet: <a title=\"Setting a \u201cdo not ask\u201d condition on multiple questions\" href=\"https:\/\/www.snapsurveys.com\/support-snap11\/worksheets\/setting-do-ask-condition-multiple-questions\/\" target=\"_self\" rel=\"noopener\">Setting a &#8220;do not ask&#8221; condition on multiple questions<\/a>.<\/p>\n<p>If there is a topic you would like a worksheet on, email to <a title=\"\" href=\"mailto:snapideas@snapsurveys.com\" target=\"_self\" rel=\"noopener\">snapideas@snapsurveys.com<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p><a class=\"ninja_pages_read_more\"  href=\"https:\/\/www.snapsurveys.com\/support-snap11\/worksheets\/using-routing-to-limit-the-grid-questions-displayed\/\"><\/a><\/p>\n","protected":false},"author":10,"featured_media":0,"parent":43,"menu_order":122,"comment_status":"open","ping_status":"closed","template":"page-templates\/child-page.php","meta":{"_acf_changed":false,"footnotes":""},"class_list":{"0":"post-6865","1":"page","2":"type-page","3":"status-publish","5":"search_category-support-hub"},"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v25.8 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Using routing to limit the grid questions displayed - Snap Surveys<\/title>\n<meta name=\"robots\" content=\"noindex, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<meta property=\"og:locale\" content=\"en_GB\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Using routing to limit the grid questions displayed - Snap Surveys\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.snapsurveys.com\/support-snap11\/worksheets\/using-routing-to-limit-the-grid-questions-displayed\/\" \/>\n<meta property=\"og:site_name\" content=\"Snap Surveys\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/SnapSurveys\" \/>\n<meta property=\"article:modified_time\" content=\"2022-07-06T14:19:40+00:00\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:site\" content=\"@snapsurveys\" \/>\n<meta name=\"twitter:label1\" content=\"Estimated reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"5 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.snapsurveys.com\/support-snap11\/worksheets\/using-routing-to-limit-the-grid-questions-displayed\/\",\"url\":\"https:\/\/www.snapsurveys.com\/support-snap11\/worksheets\/using-routing-to-limit-the-grid-questions-displayed\/\",\"name\":\"Using routing to limit the grid questions displayed - Snap Surveys\",\"isPartOf\":{\"@id\":\"https:\/\/www.snapsurveys.com\/support-snap11\/#website\"},\"datePublished\":\"2013-01-17T14:26:29+00:00\",\"dateModified\":\"2022-07-06T14:19:40+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/www.snapsurveys.com\/support-snap11\/worksheets\/using-routing-to-limit-the-grid-questions-displayed\/#breadcrumb\"},\"inLanguage\":\"en-GB\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.snapsurveys.com\/support-snap11\/worksheets\/using-routing-to-limit-the-grid-questions-displayed\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.snapsurveys.com\/support-snap11\/worksheets\/using-routing-to-limit-the-grid-questions-displayed\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.snapsurveys.com\/support-snap11\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Worksheets\",\"item\":\"https:\/\/www.snapsurveys.com\/support-snap11\/worksheets\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Using routing to limit the grid questions displayed\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.snapsurveys.com\/support-snap11\/#website\",\"url\":\"https:\/\/www.snapsurveys.com\/support-snap11\/\",\"name\":\"Snap Surveys\",\"description\":\"\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.snapsurveys.com\/support-snap11\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-GB\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Using routing to limit the grid questions displayed - Snap Surveys","robots":{"index":"noindex","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"og_locale":"en_GB","og_type":"article","og_title":"Using routing to limit the grid questions displayed - Snap Surveys","og_url":"https:\/\/www.snapsurveys.com\/support-snap11\/worksheets\/using-routing-to-limit-the-grid-questions-displayed\/","og_site_name":"Snap Surveys","article_publisher":"https:\/\/www.facebook.com\/SnapSurveys","article_modified_time":"2022-07-06T14:19:40+00:00","twitter_card":"summary_large_image","twitter_site":"@snapsurveys","twitter_misc":{"Estimated reading time":"5 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.snapsurveys.com\/support-snap11\/worksheets\/using-routing-to-limit-the-grid-questions-displayed\/","url":"https:\/\/www.snapsurveys.com\/support-snap11\/worksheets\/using-routing-to-limit-the-grid-questions-displayed\/","name":"Using routing to limit the grid questions displayed - Snap Surveys","isPartOf":{"@id":"https:\/\/www.snapsurveys.com\/support-snap11\/#website"},"datePublished":"2013-01-17T14:26:29+00:00","dateModified":"2022-07-06T14:19:40+00:00","breadcrumb":{"@id":"https:\/\/www.snapsurveys.com\/support-snap11\/worksheets\/using-routing-to-limit-the-grid-questions-displayed\/#breadcrumb"},"inLanguage":"en-GB","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.snapsurveys.com\/support-snap11\/worksheets\/using-routing-to-limit-the-grid-questions-displayed\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.snapsurveys.com\/support-snap11\/worksheets\/using-routing-to-limit-the-grid-questions-displayed\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.snapsurveys.com\/support-snap11\/"},{"@type":"ListItem","position":2,"name":"Worksheets","item":"https:\/\/www.snapsurveys.com\/support-snap11\/worksheets\/"},{"@type":"ListItem","position":3,"name":"Using routing to limit the grid questions displayed"}]},{"@type":"WebSite","@id":"https:\/\/www.snapsurveys.com\/support-snap11\/#website","url":"https:\/\/www.snapsurveys.com\/support-snap11\/","name":"Snap Surveys","description":"","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.snapsurveys.com\/support-snap11\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-GB"}]}},"_links":{"self":[{"href":"https:\/\/www.snapsurveys.com\/support-snap11\/wp-json\/wp\/v2\/pages\/6865","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.snapsurveys.com\/support-snap11\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/www.snapsurveys.com\/support-snap11\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/www.snapsurveys.com\/support-snap11\/wp-json\/wp\/v2\/users\/10"}],"replies":[{"embeddable":true,"href":"https:\/\/www.snapsurveys.com\/support-snap11\/wp-json\/wp\/v2\/comments?post=6865"}],"version-history":[{"count":10,"href":"https:\/\/www.snapsurveys.com\/support-snap11\/wp-json\/wp\/v2\/pages\/6865\/revisions"}],"predecessor-version":[{"id":31549,"href":"https:\/\/www.snapsurveys.com\/support-snap11\/wp-json\/wp\/v2\/pages\/6865\/revisions\/31549"}],"up":[{"embeddable":true,"href":"https:\/\/www.snapsurveys.com\/support-snap11\/wp-json\/wp\/v2\/pages\/43"}],"wp:attachment":[{"href":"https:\/\/www.snapsurveys.com\/support-snap11\/wp-json\/wp\/v2\/media?parent=6865"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}