{"id":1959,"date":"2024-03-24T23:02:11","date_gmt":"2024-03-24T23:02:11","guid":{"rendered":"https:\/\/contentsnare.com\/help\/knowledge-base\/conditions\/"},"modified":"2024-03-25T06:27:19","modified_gmt":"2024-03-25T06:27:19","slug":"conditions","status":"publish","type":"ht_kb","link":"https:\/\/help.contentsnare.com\/knowledge-base\/conditions\/","title":{"rendered":"Conditions"},"content":{"rendered":"\n<p>Conditions enable you to show or hide certain fields or entire sections based on your client\u2019s responses. This makes for a more personalized experience as each request will appear tailor-made on the client\u2019s end.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">How to use conditional logic<\/h2>\n\n\n\n<p>The simplest way to learn how to use conditions in Content Snare is to see an example. For the sake of this tutorial, we created a multiple choice question with four options:<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" src=\"https:\/\/help.contentsnare.com\/wp-content\/uploads\/2024\/03\/chrome_y72hKYZ1k2-1024x260.png\" alt=\"\" class=\"wp-image-1801\"\/><\/figure>\n\n\n\n<p>This question is followed by URL fields for each social media channel. However, we want the respondent to only see fields for the channels they really use, so we need to set up this condition.<\/p>\n\n\n\n<p>We go to the first URL field called \u2018Enter your Facebook URL\u2019 to click the <strong>Settings<\/strong> icon and enable <strong>Conditions<\/strong> using the toggle bar:&nbsp;<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table><tbody><tr><td><strong>Note<\/strong>: The same procedure applies to other URL fields (Twitter, LinkedIn, and Instagram).<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" src=\"https:\/\/help.contentsnare.com\/wp-content\/uploads\/2024\/03\/chrome_Db4kNjYRm7-1024x423.png\" alt=\"\" class=\"wp-image-1802\"\/><\/figure>\n\n\n\n<p>By default, the system is set to <strong>Show<\/strong> a field based on your condition, but you can change it to <strong>Hide<\/strong> in the drop-down menu:<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" src=\"https:\/\/help.contentsnare.com\/wp-content\/uploads\/2024\/03\/chrome_MrKtBzcEfr.png\" alt=\"\" class=\"wp-image-1803\"\/><\/figure>\n\n\n\n<p>We then click the <strong>Add a condition<\/strong> button to set up our parameters.<\/p>\n\n\n\n<p>First, we need to select a field to apply our condition to. We do it from the drop-down menu that shows all fields on a given page:<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" src=\"https:\/\/help.contentsnare.com\/wp-content\/uploads\/2024\/03\/chrome_6ZyiGqG8Zn.png\" alt=\"\" class=\"wp-image-1804\"\/><\/figure>\n\n\n\n<figure class=\"wp-block-table\"><table><tbody><tr><td><strong>Pro tip<\/strong>: If a page has a lot of fields, use a search tool to find the one you need.&nbsp;<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p>We picked our question \u201cWhich social media channel(s) do you use for your business?\u201d.<\/p>\n\n\n\n<p>After that, we can select the actual <strong>condition<\/strong> and the corresponding <strong>value<\/strong>. In this example, we want the client to see the \u201cEnter your Facebook URL\u201d field under the condition that their answer equals the value \u201cFacebook\u201d:<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" src=\"https:\/\/help.contentsnare.com\/wp-content\/uploads\/2024\/03\/chrome_6ni43WwXoO.png\" alt=\"\" class=\"wp-image-1806\"\/><\/figure>\n\n\n\n<p>Simply put, our client will see the Facebook link field only if they choose \u201cFacebook\u201d as an answer in our multiple choice question about social media channels.<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table><tbody><tr><td><strong>Note<\/strong>: \u2018Equal\u2019 is the default condition in Content Snare, but a few more options are available in the drop-down menu.<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p>Once the condition is set, the system will show it in the upper-left corner of the field:&nbsp;&nbsp;<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" src=\"https:\/\/help.contentsnare.com\/wp-content\/uploads\/2024\/03\/chrome_QbMh0wYm07.png\" alt=\"\" class=\"wp-image-1807\"\/><\/figure>\n\n\n\n<p>In addition, the system automatically notifies us that the initial question about social media channels affects the visibility of four fields:<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" src=\"https:\/\/help.contentsnare.com\/wp-content\/uploads\/2024\/03\/chrome_qGFDKDyujb-1024x270.png\" alt=\"\" class=\"wp-image-1808\"\/><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\">Adding more conditions<\/h3>\n\n\n\n<p>Should you wish to add more conditions to the same field, just click <strong>Add another condition<\/strong> in Settings \u2192 Conditions and repeat the procedure as explained above.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Conditional logic from the client\u2019s perspective<\/h2>\n\n\n\n<p>When the client gets to this field in our request, they\u2019ll see a standard multiple choice question without any URL-related fields in the navigation menu on the left side of the dashboard.<\/p>\n\n\n\n<p>However, as soon as they select one or more social media channels from the list, the system will automatically show URL fields for those options:<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" src=\"https:\/\/help.contentsnare.com\/wp-content\/uploads\/2024\/03\/chrome_7lI4Qc8pTY-1024x278.png\" alt=\"\" class=\"wp-image-1809\"\/><\/figure>\n\n\n\n<figure class=\"wp-block-table\"><table><tbody><tr><td><strong>Note<\/strong>: The client can continue with the request even if the hidden field is marked as required.<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\">Next steps:<\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li><a href=\"https:\/\/help.contentsnare.com\/knowledge-base\/smart-requests\/\" data-type=\"ht_kb\" data-id=\"2047\">Smart requests<\/a><\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>Conditions enable you to show or hide certain fields or entire sections based on your client\u2019s responses. This makes for a more personalized experience as each request will appear tailor-made on the client\u2019s end. How to use conditional logic The simplest way to learn how to use conditions in Content&#8230;<\/p>\n","protected":false},"author":1,"comment_status":"open","ping_status":"closed","template":"","format":"standard","meta":{"footnotes":""},"ht-kb-category":[1045],"ht-kb-tag":[],"class_list":["post-1959","ht_kb","type-ht_kb","status-publish","format-standard","hentry","ht_kb_category-field-options"],"_links":{"self":[{"href":"https:\/\/help.contentsnare.com\/wp-json\/wp\/v2\/ht-kb\/1959","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/help.contentsnare.com\/wp-json\/wp\/v2\/ht-kb"}],"about":[{"href":"https:\/\/help.contentsnare.com\/wp-json\/wp\/v2\/types\/ht_kb"}],"author":[{"embeddable":true,"href":"https:\/\/help.contentsnare.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/help.contentsnare.com\/wp-json\/wp\/v2\/comments?post=1959"}],"version-history":[{"count":1,"href":"https:\/\/help.contentsnare.com\/wp-json\/wp\/v2\/ht-kb\/1959\/revisions"}],"predecessor-version":[{"id":1968,"href":"https:\/\/help.contentsnare.com\/wp-json\/wp\/v2\/ht-kb\/1959\/revisions\/1968"}],"wp:attachment":[{"href":"https:\/\/help.contentsnare.com\/wp-json\/wp\/v2\/media?parent=1959"}],"wp:term":[{"taxonomy":"ht_kb_category","embeddable":true,"href":"https:\/\/help.contentsnare.com\/wp-json\/wp\/v2\/ht-kb-category?post=1959"},{"taxonomy":"ht_kb_tag","embeddable":true,"href":"https:\/\/help.contentsnare.com\/wp-json\/wp\/v2\/ht-kb-tag?post=1959"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}