{"id":7077,"date":"2024-04-14T17:21:24","date_gmt":"2024-04-14T09:21:24","guid":{"rendered":"https:\/\/webflow.tenten.co\/?p=7077"},"modified":"2024-04-14T17:21:24","modified_gmt":"2024-04-14T09:21:24","slug":"toggle-field","status":"publish","type":"post","link":"https:\/\/webflow.tenten.co\/en\/toggle-field\/","title":{"rendered":"Toggle Field"},"content":{"rendered":"\n<div class=\"docs_rich-text w-richtext\">\n<p>The Toggle field is a <a href=\"https:\/\/help.webflow.com\/article\/cms-collections\">Collection<\/a> field that is primarily utilized as a filtering tool. A toggle is a field type which can have either of two values: Yes or No. Collaborators can switch a toggle on or off to specify, for instance, if a blog post \u201cis featured.\u201d The toggle field can be utilized to filter <a href=\"https:\/\/help.webflow.com\/article\/collection-list\">Collection lists<\/a>. You can even arrange a list using toggles. And one of the optimal methods to utilize a toggle field is by establishing conditional visibility on elements in Collection lists and <a href=\"https:\/\/help.webflow.com\/article\/collection-pages\">Collection pages<\/a>.<\/p>\n<h5>Frequent Applications<\/h5>\n<ul>\n<li>Desire to showcase only non-profits? Create a \u201cNon-profit?\u201d toggle.<\/li>\n<li>Desire to exhibit featured articles? Create a \u201cFeatured?\u201d toggle.<\/li>\n<li>Desire to conceal specific items until they are prepared to be exhibited on your site? Build a \u201cHidden?\u201d toggle.<\/li>\n<li>Desire to display an \u201cOn Sale\u201d label only for chosen items? Build an \u201cIs On Sale?\u201d toggle.<\/li>\n<\/ul>\n<h5>Throughout this tutorial<\/h5>\n<ol>\n<li>Development of a toggle field<\/li>\n<li>Defining a toggle value<\/li>\n<li>Filtering a Collection list using the toggle field<\/li>\n<li>Organizing a Collection list using the toggle field<\/li>\n<li>Establishing conditional visibility using the toggle field<\/li>\n<\/ol>\n<h2>Development of a toggle field<\/h2>\n<p>A toggle field can be appended to a new or existing Collection. Within Collection settings, tap on <strong>New Field<\/strong> and then select the <strong>Toggle<\/strong> field.<\/p>\n<figure class=\"w-richtext-figure-type-image w-richtext-align-center\" data-rt-type=\"image\" data-rt-align=\"center\" data-rt-max-width=\"80%\">\n<div><img decoding=\"async\" src=\"https:\/\/webflow.tenten.co\/wp-content\/uploads\/2024\/04\/64b949cf8d114f4c7de3e6fb_5e613215016860ba8696da7d_59925efda513ef0001792d0a_doc-252520cms-field252520-252520toggle252520-25252000.png\" title=\"64b949cf8d114f4c7de3e6fb_5e613215016860ba8696da7d_59925efda513ef0001792d0a_doc-252520cms-field252520-252520toggle252520-25252000\"><\/div>\n<\/figure>\n<h5>Insider Tip<\/h5>\n<h6>The prevailing value for a toggle is \u201cNo\u201d. Thus, when you establish a toggle, ponder labeling it with a query that will likely have \u201cNo\u201d as the answer most times. As such, you\u2019ll initiate the switch solely for the select \u201cYes\u201d answers. For instance, if you aspire to mask only a few out of a hundred blog posts, produce a toggle termed \u201cconcealed\u201d rather than \u201cdisplayed\u201d.<\/h6>\n<h2>Defining a toggle value<\/h2>\n<p>Whether you\u2019re establishing a new item in the CMS from the Designer or the Editor, you can set a toggle on or off by straightforwardly toggling it to <strong>Yes<\/strong> or <strong>No<\/strong>.<\/p>\n<figure class=\"w-richtext-figure-type-video w-richtext-align-center\" data-rt-type=\"video\" data-rt-align=\"center\" data-rt-max-width=\"80%\" data-rt-max-height=\"45%\" data-rt-dimensions=\"640:360\" data-page-url=\"https:\/\/vimeo.com\/229658055\">\n<div><iframe src=\"https:\/\/player.vimeo.com\/video\/229658055\" frameborder scrolling=\"no\"><\/iframe><\/div><figcaption>\u00a0<\/figcaption><\/figure>\n<h2>Filtering a Collection list using the toggle field<\/h2>\n<p>If you wish to generate a Collection list that exclusively reveals items with a specific toggle set to Yes, such as a Collection list of featured posts, you can establish a filter that accomplishes that:<\/p>\n<ol>\n<li>Select the Collection list you intend to filter<\/li>\n<li>Proceed to the <strong>Settings panel (D)<\/strong><\/li>\n<li>Incorporate a <strong>Filter<\/strong> beneath <strong>Collection List Settings<\/strong><\/li>\n<li>Select your toggle field in the first dropdown<\/li>\n<li>Opt for <strong>Is On <\/strong>in the second dropdown<\/li>\n<li>Hit <strong>Save<\/strong><\/li>\n<\/ol>\n<figure class=\"w-richtext-figure-type-video w-richtext-align-center\" data-rt-type=\"video\" data-rt-align=\"center\" data-rt-max-width=\"80%\" data-rt-max-height=\"45%\" data-rt-dimensions=\"640:360\" data-page-url=\"https:\/\/vimeo.com\/233267080\">\n<div><iframe src=\"https:\/\/player.vimeo.com\/video\/233267080\" frameborder scrolling=\"no\"><\/iframe><\/div><figcaption>\u00a0<\/figcaption><\/figure>\n<p>The filter regulations that can be employed with the link field and values are:<\/p>\n<ul>\n<li><strong>Is On<\/strong> &#8211; inspects for CMS items that have toggled the switch On for this toggle field<\/li>\n<li><strong>Is Off<\/strong> &#8211; scrutinizes for CMS items that have kept the switch Off for this toggle field<\/li>\n<\/ul>\n<p><a href=\"https:\/\/help.webflow.com\/article\/filtering-collection-lists\">Find out more about filtering collection lists<\/a>.<\/p>\n<h2>Organizing a Collection list using the toggle field<\/h2>\n<p>Occasionally, you do not desire to exclude Collection items in a Collection list, but you would rather exhibit specific items first, trailed by less critical items. Hence, in place of applying a filter, you can define a sort order utilizing a toggle field:<\/p>\n<ol>\n<li>Select the Collection list you aspire to filter<\/li>\n<li>Head to the <strong>Settings panel (D)<\/strong><\/li>\n<li>Add a <strong>Sort order<\/strong> under <strong>Collection List Settings<\/strong><\/li>\n<li>Select your toggle field in the first dropdown<\/li>\n<li>Choose the sort order in the second dropdown:<strong> Is Off First <\/strong>or <strong>Is On First<\/strong><\/li>\n<li>Hit <strong>Save<\/strong><\/li>\n<\/ol>\n<figure class=\"w-richtext-figure-type-image w-richtext-align-center\" data-rt-type=\"image\" data-rt-align=\"center\" data-rt-max-width=\"220px\">\n<div><img decoding=\"async\" src=\"https:\/\/webflow.tenten.co\/wp-content\/uploads\/2024\/04\/64b949cf8d114f4c7de3e6f8_5e613217df9df8edcaee3798_59925e77a513ef0001792d06_doc-252520cms-field252520-252520toggle252520-25252003.png\" title=\"64b949cf8d114f4c7de3e6f8_5e613217df9df8edcaee3798_59925e77a513ef0001792d06_doc-252520cms-field252520-252520toggle252520-25252003\"><\/div>\n<\/figure>\n<h2>Establishing conditional visibility using the toggle field<\/h2>\n<p>To maximize Toggles, you can utilize the conditional visibility feature to realize various designs. Here are several instances:<\/p>\n<h3>Displaying unique labels<\/h3>\n<p>If you own labels such as \u201cFeatured\u201d, \u201cOn-sale\u201d, \u201cOut of stock\u201d, etc., you can employ conditional visibility to exhibit them solely on items with a specific toggle set to Yes.<\/p>\n<ol>\n<li>Select the label<\/li>\n<li>Proceed to the <strong>Settings panel (D)<\/strong><\/li>\n<li>Incorporate a <strong>Condition<\/strong> (when this element is visible) beneath <strong>Conditional visibility<\/strong><\/li>\n<li>Select your toggle field in the first dropdown<\/li>\n<li>Opt for <strong>Is On <\/strong>in the second dropdown<\/li>\n<li>Hit <strong>Save<\/strong><\/li>\n<\/ol>\n<figure class=\"w-richtext-figure-type-image w-richtext-align-center\" data-rt-type=\"image\" data-rt-align=\"center\" data-rt-max-width=\"220px\">\n<div><img decoding=\"async\" src=\"https:\/\/webflow.tenten.co\/wp-content\/uploads\/2024\/04\/64b949cf8d114f4c7de3e6fe_5e6132152ea57b828e4debba_59925f52e03d780001a55102_doc-252520cms-field252520-252520toggle252520-25252004.png\" title=\"64b949cf8d114f4c7de3e6fe_5e6132152ea57b828e4debba_59925f52e03d780001a55102_doc-252520cms-field252520-252520toggle252520-25252004\"><\/div>\n<\/figure>\n<h3>Displaying a complete section<\/h3>\n<p>You can establish distinct Collection pages, each capable of having entirely distinct layouts based on the conditions set on sections of a Collection page.<\/p>\n<p>For instance, you can create a contact form section on the Collection page. Then, establish a toggle named &#8220;Show contact form&#8221; in your Collection. Presently, if you set a conditional visibility rule on this section, the contact form will only be visible on Collection pages for Collection items with the contact form toggle set to Yes.<\/p>\n<p>To institute a condition as such:<\/p>\n<ol>\n<li>Select the entire section you want to depict\/conceal<\/li>\n<li>Head to the <strong>Settings panel (D)<\/strong><\/li>\n<li>Incorporate a <strong>Condition<\/strong> (when this element is visible) under <strong>Conditional visibility<\/strong><\/li>\n<li>Select your toggle field in the first dropdown<\/li>\n<li>Opt for <strong>Is On<\/strong> (or<strong> is Off<\/strong>) in the second dropdown<\/li>\n<li>Hit <strong>Save<\/strong><\/li>\n<\/ol>\n<figure class=\"w-richtext-figure-type-video w-richtext-align-center\" data-rt-type=\"video\" data-rt-align=\"center\" data-rt-max-width=\"80%\" data-rt-max-height=\"45%\" data-rt-dimensions=\"640:360\" data-page-url=\"https:\/\/vimeo.com\/233267082\">\n<div><iframe src=\"https:\/\/player.vimeo.com\/video\/233267082\" frameborder scrolling=\"no\"><\/iframe><\/div><figcaption>\u00a0<\/figcaption><\/figure>\n<p><a href=\"http:\/\/help.webflow.com\/article\/conditional-visibility\">Find out more about conditional visibility.<\/a><\/p>\n<\/div>\n","protected":false},"excerpt":{"rendered":"The Switch field is a Collection field that is primarily used as a filtering tool. A switch is a field type which can have either of two values: Yes or No.","protected":false},"author":2,"featured_media":7078,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"om_disable_all_campaigns":false,"inline_featured_image":false,"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"csco_display_header_overlay":false,"csco_singular_sidebar":"","csco_page_header_type":"","footnotes":""},"categories":[300],"tags":[],"class_list":{"0":"post-7077","1":"post","2":"type-post","3":"status-publish","4":"format-standard","5":"has-post-thumbnail","7":"category-cms-dynamic-content","8":"cs-entry"},"acf":[],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/webflow.tenten.co\/en\/wp-json\/wp\/v2\/posts\/7077","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/webflow.tenten.co\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/webflow.tenten.co\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/webflow.tenten.co\/en\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/webflow.tenten.co\/en\/wp-json\/wp\/v2\/comments?post=7077"}],"version-history":[{"count":0,"href":"https:\/\/webflow.tenten.co\/en\/wp-json\/wp\/v2\/posts\/7077\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/webflow.tenten.co\/en\/wp-json\/wp\/v2\/media\/7078"}],"wp:attachment":[{"href":"https:\/\/webflow.tenten.co\/en\/wp-json\/wp\/v2\/media?parent=7077"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/webflow.tenten.co\/en\/wp-json\/wp\/v2\/categories?post=7077"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/webflow.tenten.co\/en\/wp-json\/wp\/v2\/tags?post=7077"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}