{"id":144,"date":"2026-11-19T08:48:44","date_gmt":"2026-11-19T08:48:44","guid":{"rendered":"https:\/\/oddlylogical.com\/logical-forms\/?post_type=doc&#038;p=144"},"modified":"2026-11-19T08:48:44","modified_gmt":"2026-11-19T08:48:44","slug":"field-conditions","status":"publish","type":"doc","link":"https:\/\/oddlylogical.com\/logical-forms\/docs\/field-conditions\/","title":{"rendered":"Show and hide fields with conditional logic"},"content":{"rendered":"<p>Conditional field logic changes which questions apply to a visitor's answers. For example, show Company name when Contact type is Business. Core supports field Show\/Hide rules; conditional confirmations and notifications are separate Pro features.<\/p>\n<h2 id=\"configure\">Configure a rule group<\/h2>\n<ol>\n<li>Select the target field on the builder canvas.<\/li>\n<li>Open <strong>Conditional logic<\/strong> below its ordinary option groups.<\/li>\n<li>Enable the group and choose Show or Hide.<\/li>\n<li>Choose whether All or Any rules must match.<\/li>\n<li>Select a source field, comparison and value for each rule.<\/li>\n<li>Select Done, then <strong>Save form<\/strong>.<\/li>\n<\/ol>\n<p>Done, Close and Escape retain local edits; Save form persists them. Builder cards remain visible so you can edit them. Use Preview or an embedded page to check the visitor behavior.<\/p>\n<h2 id=\"matching\">Choose appropriate comparisons<\/h2>\n<table>\n<thead>\n<tr>\n<th>Source<\/th>\n<th>How to use it<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>Text answers<\/td>\n<td>Equality, inequality, contains, starts\/ends with, and emptiness operations where offered. Text comparisons fold case.<\/td>\n<\/tr>\n<tr>\n<td>Choices<\/td>\n<td>Compare the saved choice identity selected by the editor, rather than assuming a changed label is a new value.<\/td>\n<\/tr>\n<tr>\n<td>Multiple selections<\/td>\n<td>Is means the selected set contains that choice. Is not means it does not contain that choice.<\/td>\n<\/tr>\n<tr>\n<td>Number<\/td>\n<td>Use numeric comparisons such as greater than or less than. Zero is a real value; blank is not zero.<\/td>\n<\/tr>\n<tr>\n<td>Name \/ Address<\/td>\n<td>Use an enabled named component for text or country comparisons. The whole compound field supports emptiness checks.<\/td>\n<\/tr>\n<tr>\n<td>Date \/ Time<\/td>\n<td>Use the typed comparisons offered for canonical dates and times; their display formatting does not change the saved comparison value.<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h2 id=\"show-hide\">Understand Show and Hide<\/h2>\n<p>Show makes the target applicable when the group matches. Hide excludes it when the group matches. All requires every rule; Any needs at least one. A missing, deleted, disabled or otherwise unavailable source does not match, including negative or empty comparisons.<\/p>\n<p>When a question becomes conditionally inactive, the browser clears and disables its controls. Showing it again does not restore old selections or reapply defaults. The server independently evaluates applicability and excludes inactive answers from the accepted entry and downstream message values.<\/p>\n<h2 id=\"dependencies\">Sections, dependencies and unavailable rules<\/h2>\n<p>A child field needs both its Section and its own rules to be applicable. A rule cannot depend on itself or form a cycle through other fields, sections or pages. The source picker disables choices that would create a cycle, and Save checks the configuration again.<\/p>\n<p>After deleting a source field or choice, repair retained unavailable references. Internal fields are not public condition sources or targets. Static <a href=\"https:\/\/oddlylogical.com\/logical-forms\/docs\/field-visibility\/\">Hidden visibility<\/a> is different: a statically hidden value can still supply a rule while applicable.<\/p>\n<h2 id=\"test\">Test complete paths<\/h2>\n<p>Change each controlling answer, including clearing it, and test required fields inside each branch. Final submission validates all applicable questions again. Without JavaScript, conditional questions can initially render while the server still enforces applicability on requests.<\/p>\n<p>The submit button has its own conditional group, edited by selecting it in the canvas. A failing submit condition is also enforced on the server. Page and Next-button rules belong to the <a href=\"https:\/\/oddlylogical.com\/logical-forms\/docs\/multi-page-forms\/\">multi-page workflow<\/a>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Configure Logical Forms field Show\/Hide rules with All\/Any matching, typed comparisons, section dependencies and safe handling of hidden answers.<\/p>\n","protected":false},"author":1,"featured_media":0,"menu_order":22,"template":"","doc-categories":[22],"class_list":["post-144","doc","type-doc","status-publish","hentry","doc_category-field-features"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v28.7 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Show and hide fields with conditional logic | Logical Forms Docs<\/title>\n<meta name=\"description\" content=\"Configure Logical Forms field Show\/Hide rules with All\/Any matching, typed comparisons, section dependencies and safe handling of hidden answers.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/oddlylogical.com\/logical-forms\/docs\/field-conditions\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Show and hide fields with conditional logic | Logical Forms Docs\" \/>\n<meta property=\"og:description\" content=\"Configure Logical Forms field Show\/Hide rules with All\/Any matching, typed comparisons, section dependencies and safe handling of hidden answers.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/oddlylogical.com\/logical-forms\/docs\/field-conditions\/\" \/>\n<meta property=\"og:site_name\" content=\"Logical Forms\" \/>\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=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/oddlylogical.com\\\/logical-forms\\\/docs\\\/field-conditions\\\/\",\"url\":\"https:\\\/\\\/oddlylogical.com\\\/logical-forms\\\/docs\\\/field-conditions\\\/\",\"name\":\"Show and hide fields with conditional logic | Logical Forms Docs\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/oddlylogical.com\\\/logical-forms\\\/#website\"},\"datePublished\":\"2026-11-19T08:48:44+00:00\",\"description\":\"Configure Logical Forms field Show\\\/Hide rules with All\\\/Any matching, typed comparisons, section dependencies and safe handling of hidden answers.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/oddlylogical.com\\\/logical-forms\\\/docs\\\/field-conditions\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/oddlylogical.com\\\/logical-forms\\\/docs\\\/field-conditions\\\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/oddlylogical.com\\\/logical-forms\\\/docs\\\/field-conditions\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/oddlylogical.com\\\/logical-forms\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Documentation\",\"item\":\"https:\\\/\\\/oddlylogical.com\\\/logical-forms\\\/docs\\\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Show and hide fields with conditional logic\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/oddlylogical.com\\\/logical-forms\\\/#website\",\"url\":\"https:\\\/\\\/oddlylogical.com\\\/logical-forms\\\/\",\"name\":\"Logical Forms\",\"description\":\"\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/oddlylogical.com\\\/logical-forms\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Show and hide fields with conditional logic | Logical Forms Docs","description":"Configure Logical Forms field Show\/Hide rules with All\/Any matching, typed comparisons, section dependencies and safe handling of hidden answers.","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:\/\/oddlylogical.com\/logical-forms\/docs\/field-conditions\/","og_locale":"en_US","og_type":"article","og_title":"Show and hide fields with conditional logic | Logical Forms Docs","og_description":"Configure Logical Forms field Show\/Hide rules with All\/Any matching, typed comparisons, section dependencies and safe handling of hidden answers.","og_url":"https:\/\/oddlylogical.com\/logical-forms\/docs\/field-conditions\/","og_site_name":"Logical Forms","twitter_card":"summary_large_image","twitter_misc":{"Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/oddlylogical.com\/logical-forms\/docs\/field-conditions\/","url":"https:\/\/oddlylogical.com\/logical-forms\/docs\/field-conditions\/","name":"Show and hide fields with conditional logic | Logical Forms Docs","isPartOf":{"@id":"https:\/\/oddlylogical.com\/logical-forms\/#website"},"datePublished":"2026-11-19T08:48:44+00:00","description":"Configure Logical Forms field Show\/Hide rules with All\/Any matching, typed comparisons, section dependencies and safe handling of hidden answers.","breadcrumb":{"@id":"https:\/\/oddlylogical.com\/logical-forms\/docs\/field-conditions\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/oddlylogical.com\/logical-forms\/docs\/field-conditions\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/oddlylogical.com\/logical-forms\/docs\/field-conditions\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/oddlylogical.com\/logical-forms\/"},{"@type":"ListItem","position":2,"name":"Documentation","item":"https:\/\/oddlylogical.com\/logical-forms\/docs\/"},{"@type":"ListItem","position":3,"name":"Show and hide fields with conditional logic"}]},{"@type":"WebSite","@id":"https:\/\/oddlylogical.com\/logical-forms\/#website","url":"https:\/\/oddlylogical.com\/logical-forms\/","name":"Logical Forms","description":"","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/oddlylogical.com\/logical-forms\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"}]}},"_links":{"self":[{"href":"https:\/\/oddlylogical.com\/logical-forms\/wp-json\/wp\/v2\/docs\/144","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/oddlylogical.com\/logical-forms\/wp-json\/wp\/v2\/docs"}],"about":[{"href":"https:\/\/oddlylogical.com\/logical-forms\/wp-json\/wp\/v2\/types\/doc"}],"author":[{"embeddable":true,"href":"https:\/\/oddlylogical.com\/logical-forms\/wp-json\/wp\/v2\/users\/1"}],"version-history":[{"count":1,"href":"https:\/\/oddlylogical.com\/logical-forms\/wp-json\/wp\/v2\/docs\/144\/revisions"}],"predecessor-version":[{"id":145,"href":"https:\/\/oddlylogical.com\/logical-forms\/wp-json\/wp\/v2\/docs\/144\/revisions\/145"}],"wp:attachment":[{"href":"https:\/\/oddlylogical.com\/logical-forms\/wp-json\/wp\/v2\/media?parent=144"}],"wp:term":[{"taxonomy":"doc_category","embeddable":true,"href":"https:\/\/oddlylogical.com\/logical-forms\/wp-json\/wp\/v2\/doc-categories?post=144"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}