{"id":563,"date":"2024-10-11T16:56:33","date_gmt":"2024-10-11T16:56:33","guid":{"rendered":"https:\/\/www.veeform.com\/blog\/?page_id=563"},"modified":"2024-10-11T17:24:50","modified_gmt":"2024-10-11T17:24:50","slug":"scores-and-calculations-in-quizzes","status":"publish","type":"page","link":"https:\/\/www.veeform.com\/blog\/scores-and-calculations-in-quizzes\/","title":{"rendered":"Scores and calculations in quizzes"},"content":{"rendered":"<p>In a VeeForm quiz, you can perform calculations based on a score (for example, a personality quiz for which you&#8217;ll show an ending if there is most &#8220;A&#8221; answers, or &#8220;B&#8221; answers, etc).<\/p>\n<p>Let&#8217;s take an example of a quiz in which I ask people multiple questions about their eating habits to determine whether they eat mostly junk or healthy food.<\/p>\n<p><img decoding=\"async\" loading=\"lazy\" class=\"alignnone wp-image-572\" src=\"https:\/\/www.veeform.com\/blog\/wp-content\/uploads\/2024\/10\/score-0.jpg\" alt=\"\" width=\"1197\" height=\"578\" srcset=\"https:\/\/www.veeform.com\/blog\/wp-content\/uploads\/2024\/10\/score-0.jpg 1893w, https:\/\/www.veeform.com\/blog\/wp-content\/uploads\/2024\/10\/score-0-300x145.jpg 300w, https:\/\/www.veeform.com\/blog\/wp-content\/uploads\/2024\/10\/score-0-1024x494.jpg 1024w, https:\/\/www.veeform.com\/blog\/wp-content\/uploads\/2024\/10\/score-0-768x371.jpg 768w, https:\/\/www.veeform.com\/blog\/wp-content\/uploads\/2024\/10\/score-0-1536x742.jpg 1536w\" sizes=\"(max-width: 1197px) 100vw, 1197px\" \/><\/p>\n<p>After I setup my questions, I go to the &#8220;Logic Settings&#8221; tab and click on &#8220;Looking for a quiz score? Click here&#8221;.<\/p>\n<p><img decoding=\"async\" loading=\"lazy\" class=\"alignnone wp-image-565\" src=\"https:\/\/www.veeform.com\/blog\/wp-content\/uploads\/2024\/10\/score-1.jpg\" alt=\"\" width=\"417\" height=\"259\" srcset=\"https:\/\/www.veeform.com\/blog\/wp-content\/uploads\/2024\/10\/score-1.jpg 444w, https:\/\/www.veeform.com\/blog\/wp-content\/uploads\/2024\/10\/score-1-300x186.jpg 300w\" sizes=\"(max-width: 417px) 100vw, 417px\" \/><\/p>\n<p>&nbsp;<\/p>\n<p>From there, I add a &#8220;junk-score&#8221; score.<\/p>\n<p><img decoding=\"async\" loading=\"lazy\" class=\"alignnone wp-image-566\" src=\"https:\/\/www.veeform.com\/blog\/wp-content\/uploads\/2024\/10\/score-3.jpg\" alt=\"\" width=\"907\" height=\"296\" srcset=\"https:\/\/www.veeform.com\/blog\/wp-content\/uploads\/2024\/10\/score-3.jpg 1035w, https:\/\/www.veeform.com\/blog\/wp-content\/uploads\/2024\/10\/score-3-300x98.jpg 300w, https:\/\/www.veeform.com\/blog\/wp-content\/uploads\/2024\/10\/score-3-1024x334.jpg 1024w, https:\/\/www.veeform.com\/blog\/wp-content\/uploads\/2024\/10\/score-3-768x251.jpg 768w\" sizes=\"(max-width: 907px) 100vw, 907px\" \/><\/p>\n<p>I set its initial value to zero and add 1 for each junk food answer (only choice\/dropdown questions can be tied to a score).<\/p>\n<p><img decoding=\"async\" loading=\"lazy\" class=\"alignnone wp-image-567\" src=\"https:\/\/www.veeform.com\/blog\/wp-content\/uploads\/2024\/10\/score-4.jpg\" alt=\"\" width=\"918\" height=\"763\" srcset=\"https:\/\/www.veeform.com\/blog\/wp-content\/uploads\/2024\/10\/score-4.jpg 1026w, https:\/\/www.veeform.com\/blog\/wp-content\/uploads\/2024\/10\/score-4-300x249.jpg 300w, https:\/\/www.veeform.com\/blog\/wp-content\/uploads\/2024\/10\/score-4-1024x851.jpg 1024w, https:\/\/www.veeform.com\/blog\/wp-content\/uploads\/2024\/10\/score-4-768x639.jpg 768w\" sizes=\"(max-width: 918px) 100vw, 918px\" \/><\/p>\n<p>I do the equivalent for a &#8220;health-score&#8221; score.<\/p>\n<p><img decoding=\"async\" loading=\"lazy\" class=\"alignnone wp-image-568\" src=\"https:\/\/www.veeform.com\/blog\/wp-content\/uploads\/2024\/10\/score-5.jpg\" alt=\"\" width=\"914\" height=\"761\" srcset=\"https:\/\/www.veeform.com\/blog\/wp-content\/uploads\/2024\/10\/score-5.jpg 1025w, https:\/\/www.veeform.com\/blog\/wp-content\/uploads\/2024\/10\/score-5-300x250.jpg 300w, https:\/\/www.veeform.com\/blog\/wp-content\/uploads\/2024\/10\/score-5-768x639.jpg 768w\" sizes=\"(max-width: 914px) 100vw, 914px\" \/><\/p>\n<p>Then I close the popup and edit the last question&#8217;s logic (just before the endings). As you can see on the screenshot below, I&#8217;m setting a rule so that if &#8220;junk-score&#8221; is the highest score, the user is redirected to the &#8220;You eat junk food&#8221; ending, and if &#8220;healthy-score&#8221; is the highest score, then the user is redirected to the &#8220;You eat healthy food&#8221; ending.<\/p>\n<p><img decoding=\"async\" loading=\"lazy\" class=\"alignnone size-full wp-image-573\" src=\"https:\/\/www.veeform.com\/blog\/wp-content\/uploads\/2024\/10\/score-6.jpg\" alt=\"\" width=\"1894\" height=\"915\" srcset=\"https:\/\/www.veeform.com\/blog\/wp-content\/uploads\/2024\/10\/score-6.jpg 1894w, https:\/\/www.veeform.com\/blog\/wp-content\/uploads\/2024\/10\/score-6-300x145.jpg 300w, https:\/\/www.veeform.com\/blog\/wp-content\/uploads\/2024\/10\/score-6-1024x495.jpg 1024w, https:\/\/www.veeform.com\/blog\/wp-content\/uploads\/2024\/10\/score-6-768x371.jpg 768w, https:\/\/www.veeform.com\/blog\/wp-content\/uploads\/2024\/10\/score-6-1536x742.jpg 1536w\" sizes=\"(max-width: 1894px) 100vw, 1894px\" \/><\/p>\n<p>&nbsp;<\/p>\n<p>If some scores are equal, then the first rule will prevail (so if &#8220;junk-score&#8221; = 1 and &#8220;healthy-score&#8221; = 1, the user will be redirected to &#8220;You eat junk food&#8221; since the redirection is first in the logic list).<\/p>\n<p>That&#8217;s it!<\/p>\n<h2>Additional information<\/h2>\n<p>The scores are recorded and can be found in the response details (also they are sent to your third-party integrations).<\/p>\n<p><img decoding=\"async\" loading=\"lazy\" class=\"alignnone wp-image-575\" src=\"https:\/\/www.veeform.com\/blog\/wp-content\/uploads\/2024\/10\/score-7.jpg\" alt=\"\" width=\"1081\" height=\"642\" srcset=\"https:\/\/www.veeform.com\/blog\/wp-content\/uploads\/2024\/10\/score-7.jpg 1179w, https:\/\/www.veeform.com\/blog\/wp-content\/uploads\/2024\/10\/score-7-300x178.jpg 300w, https:\/\/www.veeform.com\/blog\/wp-content\/uploads\/2024\/10\/score-7-1024x608.jpg 1024w, https:\/\/www.veeform.com\/blog\/wp-content\/uploads\/2024\/10\/score-7-768x456.jpg 768w\" sizes=\"(max-width: 1081px) 100vw, 1081px\" \/><\/p>\n<p>&nbsp;<\/p>\n<p>Also, it can be useful to assign a customer tag when a user reaches a specific ending. For instance, on the screenshot below, I assign a &#8220;junk-eater&#8221; tag if the user sees the &#8220;You eat junk food&#8221; ending. This is very useful to flag the result of the quiz.<\/p>\n<p><img decoding=\"async\" loading=\"lazy\" class=\"alignnone size-full wp-image-576\" src=\"https:\/\/www.veeform.com\/blog\/wp-content\/uploads\/2024\/10\/score-8.jpg\" alt=\"\" width=\"1884\" height=\"906\" srcset=\"https:\/\/www.veeform.com\/blog\/wp-content\/uploads\/2024\/10\/score-8.jpg 1884w, https:\/\/www.veeform.com\/blog\/wp-content\/uploads\/2024\/10\/score-8-300x144.jpg 300w, https:\/\/www.veeform.com\/blog\/wp-content\/uploads\/2024\/10\/score-8-1024x492.jpg 1024w, https:\/\/www.veeform.com\/blog\/wp-content\/uploads\/2024\/10\/score-8-768x369.jpg 768w, https:\/\/www.veeform.com\/blog\/wp-content\/uploads\/2024\/10\/score-8-1536x739.jpg 1536w\" sizes=\"(max-width: 1884px) 100vw, 1884px\" \/><\/p>\n","protected":false},"excerpt":{"rendered":"<p>In a VeeForm quiz, you can perform calculations based on a score (for example, a personality quiz for which you&#8217;ll show an ending if there is most &#8220;A&#8221; answers, or &#8220;B&#8221; answers, etc). Let&#8217;s take an example of a quiz in which I ask people multiple questions about their eating habits to determine whether they [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.6 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Scores and calculations in quizzes - VeeForm Blog<\/title>\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.veeform.com\/blog\/scores-and-calculations-in-quizzes\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Scores and calculations in quizzes - VeeForm Blog\" \/>\n<meta property=\"og:description\" content=\"In a VeeForm quiz, you can perform calculations based on a score (for example, a personality quiz for which you&#8217;ll show an ending if there is most &#8220;A&#8221; answers, or &#8220;B&#8221; answers, etc). Let&#8217;s take an example of a quiz in which I ask people multiple questions about their eating habits to determine whether they [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.veeform.com\/blog\/scores-and-calculations-in-quizzes\/\" \/>\n<meta property=\"og:site_name\" content=\"VeeForm Blog\" \/>\n<meta property=\"article:modified_time\" content=\"2024-10-11T17:24:50+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.veeform.com\/blog\/wp-content\/uploads\/2024\/10\/score-0.jpg\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"3 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.veeform.com\/blog\/scores-and-calculations-in-quizzes\/\",\"url\":\"https:\/\/www.veeform.com\/blog\/scores-and-calculations-in-quizzes\/\",\"name\":\"Scores and calculations in quizzes - VeeForm Blog\",\"isPartOf\":{\"@id\":\"https:\/\/www.veeform.com\/blog\/#website\"},\"datePublished\":\"2024-10-11T16:56:33+00:00\",\"dateModified\":\"2024-10-11T17:24:50+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/www.veeform.com\/blog\/scores-and-calculations-in-quizzes\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.veeform.com\/blog\/scores-and-calculations-in-quizzes\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.veeform.com\/blog\/scores-and-calculations-in-quizzes\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.veeform.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Scores and calculations in quizzes\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.veeform.com\/blog\/#website\",\"url\":\"https:\/\/www.veeform.com\/blog\/\",\"name\":\"VeeForm Blog\",\"description\":\"Everything you need to know about forms and quizzes.\",\"publisher\":{\"@id\":\"https:\/\/www.veeform.com\/blog\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.veeform.com\/blog\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/www.veeform.com\/blog\/#organization\",\"name\":\"VeeForm\",\"url\":\"https:\/\/www.veeform.com\/blog\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.veeform.com\/blog\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/www.veeform.com\/blog\/wp-content\/uploads\/2023\/04\/social.png\",\"contentUrl\":\"https:\/\/www.veeform.com\/blog\/wp-content\/uploads\/2023\/04\/social.png\",\"width\":1024,\"height\":1024,\"caption\":\"VeeForm\"},\"image\":{\"@id\":\"https:\/\/www.veeform.com\/blog\/#\/schema\/logo\/image\/\"}}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Scores and calculations in quizzes - VeeForm Blog","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.veeform.com\/blog\/scores-and-calculations-in-quizzes\/","og_locale":"en_US","og_type":"article","og_title":"Scores and calculations in quizzes - VeeForm Blog","og_description":"In a VeeForm quiz, you can perform calculations based on a score (for example, a personality quiz for which you&#8217;ll show an ending if there is most &#8220;A&#8221; answers, or &#8220;B&#8221; answers, etc). Let&#8217;s take an example of a quiz in which I ask people multiple questions about their eating habits to determine whether they [&hellip;]","og_url":"https:\/\/www.veeform.com\/blog\/scores-and-calculations-in-quizzes\/","og_site_name":"VeeForm Blog","article_modified_time":"2024-10-11T17:24:50+00:00","og_image":[{"url":"https:\/\/www.veeform.com\/blog\/wp-content\/uploads\/2024\/10\/score-0.jpg"}],"twitter_card":"summary_large_image","twitter_misc":{"Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.veeform.com\/blog\/scores-and-calculations-in-quizzes\/","url":"https:\/\/www.veeform.com\/blog\/scores-and-calculations-in-quizzes\/","name":"Scores and calculations in quizzes - VeeForm Blog","isPartOf":{"@id":"https:\/\/www.veeform.com\/blog\/#website"},"datePublished":"2024-10-11T16:56:33+00:00","dateModified":"2024-10-11T17:24:50+00:00","breadcrumb":{"@id":"https:\/\/www.veeform.com\/blog\/scores-and-calculations-in-quizzes\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.veeform.com\/blog\/scores-and-calculations-in-quizzes\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.veeform.com\/blog\/scores-and-calculations-in-quizzes\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.veeform.com\/blog\/"},{"@type":"ListItem","position":2,"name":"Scores and calculations in quizzes"}]},{"@type":"WebSite","@id":"https:\/\/www.veeform.com\/blog\/#website","url":"https:\/\/www.veeform.com\/blog\/","name":"VeeForm Blog","description":"Everything you need to know about forms and quizzes.","publisher":{"@id":"https:\/\/www.veeform.com\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.veeform.com\/blog\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.veeform.com\/blog\/#organization","name":"VeeForm","url":"https:\/\/www.veeform.com\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.veeform.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/www.veeform.com\/blog\/wp-content\/uploads\/2023\/04\/social.png","contentUrl":"https:\/\/www.veeform.com\/blog\/wp-content\/uploads\/2023\/04\/social.png","width":1024,"height":1024,"caption":"VeeForm"},"image":{"@id":"https:\/\/www.veeform.com\/blog\/#\/schema\/logo\/image\/"}}]}},"_links":{"self":[{"href":"https:\/\/www.veeform.com\/blog\/wp-json\/wp\/v2\/pages\/563"}],"collection":[{"href":"https:\/\/www.veeform.com\/blog\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/www.veeform.com\/blog\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/www.veeform.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.veeform.com\/blog\/wp-json\/wp\/v2\/comments?post=563"}],"version-history":[{"count":9,"href":"https:\/\/www.veeform.com\/blog\/wp-json\/wp\/v2\/pages\/563\/revisions"}],"predecessor-version":[{"id":582,"href":"https:\/\/www.veeform.com\/blog\/wp-json\/wp\/v2\/pages\/563\/revisions\/582"}],"wp:attachment":[{"href":"https:\/\/www.veeform.com\/blog\/wp-json\/wp\/v2\/media?parent=563"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}