{"id":5014,"date":"2026-10-15T20:00:00","date_gmt":"2026-10-15T19:00:00","guid":{"rendered":"http:\/\/docs.checkm8.systems\/?page_id=5014"},"modified":"2026-10-15T20:00:00","modified_gmt":"2026-10-15T19:00:00","slug":"conditional-logic-fields","status":"publish","type":"page","link":"https:\/\/docs.checkm8.systems\/?page_id=5014","title":{"rendered":"Add and Configure Conditional Logic"},"content":{"rendered":"<h2>What conditional logic does<\/h2>\n<p>Conditional logic shows or hides a field, section or page based on an answer. For example, choosing \u201cNo \u2013 fault found\u201d can reveal a fault description and evidence upload.<\/p>\n<h2>Configure a field rule<\/h2>\n<ol>\n<li>Open <strong>Forms<\/strong> and edit the form.<\/li>\n<li>Add the field that should appear conditionally, or select the existing field.<\/li>\n<li>In its settings, find <strong>Conditional Logic<\/strong> and enable it.<\/li>\n<li>Choose whether to show or hide the field when the rules match.<\/li>\n<li>Select the controlling field, comparison operator and answer\/value.<\/li>\n<li>Use <strong>+ Add<\/strong> to add another rule. Choose <strong>All<\/strong> if every rule must match, or <strong>Any<\/strong> if at least one rule may match.<\/li>\n<li>Save the form.<\/li>\n<\/ol>\n<h2>Example: fault reporting<\/h2>\n<p>Controller field: \u201cIs the equipment safe to use?\u201d with choices \u201cYes \u2013 serviceable\u201d and \u201cNo \u2013 fault found\u201d. Target fields: \u201cDescribe the fault\u201d and \u201cUpload photograph\u201d. Set both target fields to show when the controller field is \u201cNo \u2013 fault found\u201d. If there are separate checks that can independently trigger a fault, use a separate rule structure that matches the intended workflow and test each route.<\/p>\n<h2>Test every path<\/h2>\n<ul>\n<li>Select the answer that should reveal the field.<\/li>\n<li>Select the answer that should keep the field hidden.<\/li>\n<li>Submit a test entry on each path.<\/li>\n<li>Check whether hidden fields are required or otherwise causing unexpected validation errors.<\/li>\n<li>Review notifications and reports to make sure the correct data is captured.<\/li>\n<\/ul>\n<h2>Troubleshooting<\/h2>\n<p>If a field never appears, confirm the controlling field and answer match exactly, the logic is enabled, and the form was saved. If a field always appears, check whether the rule is attached to the intended field and whether a different rule uses \u201cAny\u201d. If a whole section should be conditional, consider putting the relevant fields in a Section field and configuring the section\u2019s logic, then test the behaviour.<\/p>\n<p>Official guide: <a href=\"https:\/\/docs.gravityforms.com\/enable-conditional-logic\/\">Enabling Conditional Logic for Fields<\/a>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>What conditional logic does Conditional logic shows or hides a field, section or page based on an answer. For example, choosing \u201cNo \u2013 fault found\u201d can reveal a fault description and evidence upload. Configure a field rule Open Forms and edit the form. Add the field that should appear conditionally, or select the existing field. [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":5002,"menu_order":14,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-5014","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/docs.checkm8.systems\/index.php?rest_route=\/wp\/v2\/pages\/5014","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/docs.checkm8.systems\/index.php?rest_route=\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/docs.checkm8.systems\/index.php?rest_route=\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/docs.checkm8.systems\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/docs.checkm8.systems\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=5014"}],"version-history":[{"count":0,"href":"https:\/\/docs.checkm8.systems\/index.php?rest_route=\/wp\/v2\/pages\/5014\/revisions"}],"up":[{"embeddable":true,"href":"https:\/\/docs.checkm8.systems\/index.php?rest_route=\/wp\/v2\/pages\/5002"}],"wp:attachment":[{"href":"https:\/\/docs.checkm8.systems\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=5014"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}