{"id":5206,"date":"2012-10-23T15:34:11","date_gmt":"2012-10-23T15:34:11","guid":{"rendered":"https:\/\/www.snapsurveys.com\/support-snap11\/?page_id=5206"},"modified":"2018-10-04T15:03:48","modified_gmt":"2018-10-04T14:03:48","slug":"dynamically-changing-website-address-respondents-survey-completion","status":"publish","type":"page","link":"https:\/\/www.snapsurveys.com\/support-snap11\/worksheets\/dynamically-changing-website-address-respondents-survey-completion\/","title":{"rendered":"Dynamically changing the website address that respondents go to on survey completion"},"content":{"rendered":"<p>When respondents answer an online survey, you can specify the website that they are taken to on completion. You can set up the website address to be specific to a respondent by including one or more survey variables in it.<\/p>\n<p>You can either:<\/p>\n<ul>\n<li>insert the response to a question as part of a website address<\/li>\n<li>use derived variables (Snap WebHost only) which identify a website address, chosen dependent on a respondent&#8217;s answers to the survey<\/li>\n<li>pass the content of variables to an active web page, for example, to insert a respondent&#8217;s name into a &#8220;Thank you&#8221; message.<\/li>\n<\/ul>\n<p><a id=\"o19435\" name=\"o19435\"><\/a><\/p>\n<h3>Background<\/h3>\n<p>You can pass the content of variables into the website address by using the question name enclosed in curly brackets. The question names are listed in the variable window in Snap. By default they tend to be Q1, Q2 etc, but you can change them.<\/p>\n<p>The data that is inserted in place of the question name depends on the type of question:<\/p>\n<table border=\"0\" cellspacing=\"0\" cellpadding=\"2\">\n<tbody>\n<tr align=\"left\">\n<th width=\"50%\"><strong>Response type<\/strong><\/th>\n<th width=\"50%\"><strong>Information used<\/strong><\/th>\n<\/tr>\n<tr align=\"left\">\n<td width=\"50%\">Quantity, Date, Time or Literal response<\/td>\n<td width=\"50%\">Respondent&#8217;s answer<\/td>\n<\/tr>\n<tr align=\"left\">\n<td width=\"50%\">Single-response<\/td>\n<td width=\"50%\">Code label<\/td>\n<\/tr>\n<tr align=\"left\">\n<td width=\"50%\">Multiple responses<\/td>\n<td width=\"50%\">The response code labels are joined into a list (so responses of &#8220;bee&#8221;, &#8220;wasp&#8221;, &#8220;fly&#8221; would become &#8220;<strong>bee, wasp and fly<\/strong>&#8220;)<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p><a id=\"o19436\" name=\"o19436\"><\/a><\/p>\n<h3>Summary of steps<\/h3>\n<p>To give a simple idea of how passing variables in a web address works, this worksheet shows how to create a single-response question about Internet search engines. The code label from the answer is inserted into the website address, giving the complete search engine address.<\/p>\n<p><a id=\"h19450\" title=\"Step 1: Setting up the question\" href=\"#o19438\" target=\"_self\">Step 1: Setting up the question<\/a><br \/>\n<a id=\"h19452\" title=\"Step 2: Setting up the final address in the survey properties\" href=\"#o19439\" target=\"_self\">Step 2: Setting up the final address in the survey properties<\/a><br \/>\n<a id=\"h19453\" title=\"Step 3: Publishing and testing the survey\" href=\"#o19449\" target=\"_self\">Step 3: Publishing and testing the survey<\/a><\/p>\n<div>\n<h3><a id=\"o19438\" name=\"o19438\"><\/a>Step 1: Setting up the question<\/h3>\n<ol>\n<li>Open the survey that you wish to add your questions to, or create a new survey.<\/li>\n<li>Select the <strong>Multi Choice<\/strong> style.<\/li>\n<li>Click [Enter] to create the first part of the question.<\/li>\n<li>Enter the question text.<\/li>\n<li>Click [Tab] to create the different choices and complete the code labels. In the example we are using four search engine names, Yahoo, Google, Ask and MSN. Since it is a single-response question, the code labels will replace the variable in the web address.\n<div><img loading=\"lazy\" decoding=\"async\" style=\"margin-left: 0px; margin-right: 0px; border: 0px;\" src=\"https:\/\/www.snapsurveys.com\/support-snap11\/wp-content\/uploads\/2017\/01\/19442.gif\" alt=\"Questionnaire - Design Mode dialog\" width=\"450\" height=\"134\" align=\"bottom\" border=\"0\" hspace=\"0\" \/><\/div>\n<\/li>\n<li>Select <strong>Response <\/strong>in the Toolbar Topic menu, and check the <strong>Single <\/strong>radio button.<\/li>\n<li>Click <img loading=\"lazy\" decoding=\"async\" style=\"margin-left: 0px; margin-right: 0px; border: 0px;\" src=\"https:\/\/www.snapsurveys.com\/support-snap11\/wp-content\/uploads\/2016\/07\/Save.png\" alt=\"Save button\" width=\"26\" height=\"24\" align=\"bottom\" border=\"0\" hspace=\"0\" \/> to save your changes.<\/li>\n<\/ol>\n<\/div>\n<div>\n<h3><a id=\"o19439\" name=\"o19439\"><\/a>Step 2: Setting up the final address in the survey properties<\/h3>\n<ol>\n<li>In Questionnaire mode, click <img loading=\"lazy\" decoding=\"async\" style=\"margin-left: 0px; margin-right: 0px; border: 0px;\" src=\"https:\/\/www.snapsurveys.com\/support-snap11\/wp-content\/uploads\/2013\/08\/18614.gif\" alt=\"Questionnaire Properties button\" width=\"26\" height=\"24\" align=\"bottom\" border=\"0\" hspace=\"0\" \/> to open the <strong>Survey Properties<\/strong> dialog.<\/li>\n<li>Select Replies in the lefthand pane.\n<div><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-22788\" src=\"https:\/\/www.snapsurveys.com\/support-snap11\/wp-content\/uploads\/2016\/07\/19447v2.gif\" alt=\"19447v2\" width=\"421\" height=\"307\" srcset=\"https:\/\/www.snapsurveys.com\/support-snap11\/wp-content\/uploads\/2016\/07\/19447v2.gif 421w, https:\/\/www.snapsurveys.com\/support-snap11\/wp-content\/uploads\/2016\/07\/19447v2-150x109.gif 150w\" sizes=\"auto, (max-width: 421px) 100vw, 421px\" \/><\/div>\n<\/li>\n<li>Type the web address with variables into the <strong>Web Page after Submitting<\/strong> box. The variable must be entered as the variable name enclosed in curly brackets.In the example above, the web address is made up of the code label for the question &#8220;Which search engine would you like to use now?&#8221; and the rest of the web address. Fortunately all the search engines have a similar address structure so you don&#8217;t need to set up a derived variable to provide separate addresses.<\/li>\n<\/ol>\n<\/div>\n<div>\n<h3><a id=\"o19449\" name=\"o19449\"><\/a>Step 3: Publishing and testing the survey<\/h3>\n<ol>\n<li>Save the changes to your survey.<\/li>\n<li>Publish your survey by selecting<strong> File | Publish<\/strong> or [Ctrl][Shift][W].<\/li>\n<li>If you have published your survey to HTML, open it in a browser. If you have published it to Snap WebHost upload it to Snap WebHost.<\/li>\n<li>Go through all the questions, and check that the final weblink is converting correctly in all cases.<\/li>\n<\/ol>\n<p>If it is not working:<\/p>\n<ul>\n<li>Check that you have used curly brackets to surround your variable name.<\/li>\n<li>Check that you are not looking at it in the previewer. (Open the published file in a new version of your browser.)<\/li>\n<\/ul>\n<\/div>\n<h3><a id=\"o19440\" name=\"o19440\"><\/a>Passing information to a web page<\/h3>\n<p>Websites that use scripting, such as Active Server Pages (ASP), can receive variables in the web address. If the website that you are directing respondents to can do this, you can send it information to use. For example. if the website will display a welcome message into which it inserts the viewer&#8217;s given name (gn) and family name (fn), and you ask respondents for their given name (stored in q1) and family name (stored in q2), you could pass them like this<\/p>\n<p>http:\/\/www.yourwebsite.com\/welcome?gn={q1}&#038;fn={q2}.<\/p>\n<p>If you need to pass variables to a website, then talk to your website designer or programmer about what information is needed, and what format it must be in.<\/p>\n<p><!-- End AuthotIT data --><\/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\">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\/dynamically-changing-website-address-respondents-survey-completion\/\"><\/a><\/p>\n","protected":false},"author":10,"featured_media":0,"parent":43,"menu_order":129,"comment_status":"open","ping_status":"closed","template":"page-templates\/child-page.php","meta":{"_acf_changed":false,"footnotes":""},"class_list":{"0":"post-5206","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>Dynamically changing the website address that respondents go to on survey completion - 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=\"Dynamically changing the website address that respondents go to on survey completion - Snap Surveys\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.snapsurveys.com\/support-snap11\/worksheets\/dynamically-changing-website-address-respondents-survey-completion\/\" \/>\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=\"2018-10-04T14:03:48+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=\"4 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\/dynamically-changing-website-address-respondents-survey-completion\/\",\"url\":\"https:\/\/www.snapsurveys.com\/support-snap11\/worksheets\/dynamically-changing-website-address-respondents-survey-completion\/\",\"name\":\"Dynamically changing the website address that respondents go to on survey completion - Snap Surveys\",\"isPartOf\":{\"@id\":\"https:\/\/www.snapsurveys.com\/support-snap11\/#website\"},\"datePublished\":\"2012-10-23T15:34:11+00:00\",\"dateModified\":\"2018-10-04T14:03:48+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/www.snapsurveys.com\/support-snap11\/worksheets\/dynamically-changing-website-address-respondents-survey-completion\/#breadcrumb\"},\"inLanguage\":\"en-GB\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.snapsurveys.com\/support-snap11\/worksheets\/dynamically-changing-website-address-respondents-survey-completion\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.snapsurveys.com\/support-snap11\/worksheets\/dynamically-changing-website-address-respondents-survey-completion\/#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\":\"Dynamically changing the website address that respondents go to on survey completion\"}]},{\"@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":"Dynamically changing the website address that respondents go to on survey completion - 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":"Dynamically changing the website address that respondents go to on survey completion - Snap Surveys","og_url":"https:\/\/www.snapsurveys.com\/support-snap11\/worksheets\/dynamically-changing-website-address-respondents-survey-completion\/","og_site_name":"Snap Surveys","article_publisher":"https:\/\/www.facebook.com\/SnapSurveys","article_modified_time":"2018-10-04T14:03:48+00:00","twitter_card":"summary_large_image","twitter_site":"@snapsurveys","twitter_misc":{"Estimated reading time":"4 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.snapsurveys.com\/support-snap11\/worksheets\/dynamically-changing-website-address-respondents-survey-completion\/","url":"https:\/\/www.snapsurveys.com\/support-snap11\/worksheets\/dynamically-changing-website-address-respondents-survey-completion\/","name":"Dynamically changing the website address that respondents go to on survey completion - Snap Surveys","isPartOf":{"@id":"https:\/\/www.snapsurveys.com\/support-snap11\/#website"},"datePublished":"2012-10-23T15:34:11+00:00","dateModified":"2018-10-04T14:03:48+00:00","breadcrumb":{"@id":"https:\/\/www.snapsurveys.com\/support-snap11\/worksheets\/dynamically-changing-website-address-respondents-survey-completion\/#breadcrumb"},"inLanguage":"en-GB","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.snapsurveys.com\/support-snap11\/worksheets\/dynamically-changing-website-address-respondents-survey-completion\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.snapsurveys.com\/support-snap11\/worksheets\/dynamically-changing-website-address-respondents-survey-completion\/#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":"Dynamically changing the website address that respondents go to on survey completion"}]},{"@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\/5206","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=5206"}],"version-history":[{"count":9,"href":"https:\/\/www.snapsurveys.com\/support-snap11\/wp-json\/wp\/v2\/pages\/5206\/revisions"}],"predecessor-version":[{"id":24545,"href":"https:\/\/www.snapsurveys.com\/support-snap11\/wp-json\/wp\/v2\/pages\/5206\/revisions\/24545"}],"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=5206"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}