{"id":1367,"date":"2021-12-09T12:28:46","date_gmt":"2021-12-09T12:28:46","guid":{"rendered":"https:\/\/crocoblock.com\/knowledge-base\/?post_type=article&#038;p=1367"},"modified":"2024-01-24T18:19:09","modified_gmt":"2024-01-24T18:19:09","slug":"cannot-set-conditional-logic-for-posts-and-terms-in-jetengine-forms","status":"publish","type":"troubleshooting","link":"https:\/\/crocoblock.com\/knowledge-base\/troubleshooting\/cannot-set-conditional-logic-for-posts-and-terms-in-jetengine-forms\/","title":{"rendered":"Cannot Set Conditional Logic for Posts and Terms in JetEngine Forms"},"content":{"rendered":"\n<p>You can learn about <strong>Conditional Visibility Rules<\/strong> for form fields in this <a href=\"https:\/\/crocoblock.com\/knowledge-base\/jetengine\/conditional-visibility-rules-for-form-fields-overview\/\" target=\"_blank\" rel=\"noreferrer noopener\"><strong>tutorial<\/strong><\/a>. Here we explain how to set conditional logic for specific posts or terms.<\/p>\n\n\n\n<p>Go to <strong><em>JetEngine &gt; Forms<\/em> <\/strong>and click on the \u201c<strong>Edit<\/strong>\u201d<strong> <\/strong>button under the needed form.<\/p>\n\n\n\n<img decoding=\"async\" src=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2021\/12\/edit-form-1.png\" alt=\"jetengine forms\">\n\n\n\n<p>Make sure that you have created the needed fields for posts or terms. Then, hit the \u201c<strong>Set up conditional rules<\/strong>\u201d<strong> <\/strong>button in the field that you want to show or hide according to the conditions.<\/p>\n\n\n\n<img decoding=\"async\" src=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2021\/12\/set-up-conditional-rules-1.png\" alt=\"set up conditional rules\">\n\n\n\n<p>In the <strong>Field,<\/strong> choose the field\u2019s name. We have selected the field with the posts.<\/p>\n\n\n\n<p>You can choose \u201cEqual\u201d or another option in the <strong>Operator<\/strong> field.<\/p>\n\n\n<div class=\"note-banner d-flex border-bold border-jetsmartfilters rounded overflow-hidden p-20\"><div class=\"mr-12\"><svg width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" fill=\"none\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\"><path d=\"M1 21H23L12 2L1 21ZM13 18H11V16H13V18ZM13 14H11V10H13V14Z\" fill=\"#FA5450\"\/><\/svg><\/div><div class=\"d-flex flex-column\"><div class=\"text-900 mb-12\">Warning<\/div><p class=\"m-0\">Be aware that the \u201cEqual\u201d option works for the <strong>Radio<\/strong> and <strong>Select<\/strong> types of fields; for the <strong>Checkboxes<\/strong>, choose the \u201cIn the list\u201d option.<\/p><\/div><\/div>\n\n\n\n<img decoding=\"async\" src=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2021\/12\/conditions-for-posts-1.png\" alt=\"edit conditional logic\">\n\n\n<div class=\"note-banner d-flex border-bold border-jetsmartfilters rounded overflow-hidden p-20\"><div class=\"mr-12\"><svg width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" fill=\"none\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\"><path d=\"M1 21H23L12 2L1 21ZM13 18H11V16H13V18ZM13 14H11V10H13V14Z\" fill=\"#FA5450\"\/><\/svg><\/div><div class=\"d-flex flex-column\"><div class=\"text-900 mb-12\">Warning<\/div><p class=\"m-0\">In the <strong>Value to compare<\/strong>, enter the post <strong>IDs<\/strong>. If you enter the post <strong>titles<\/strong>, it doesn\u2019t work because <strong>Radio<\/strong>, <strong>Checkbox<\/strong>, and <strong>Select<\/strong> fields get the value post ID by default.<\/p><\/div><\/div>\n\n\n\n<p>If you want to get value from the post <strong>title<\/strong> or another meta field, click to edit the field for posts and enter the name of any meta field. The condition will get the value from there.<\/p>\n\n\n\n<img decoding=\"async\" src=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2021\/12\/post-field-1.png\" alt=\"value from meta field\">\n\n\n\n<p>The settings described above also work for the field for terms. As you can notice, we have used the \u201cIn the list\u201d<strong> Operator <\/strong>because our field type is the <strong>Checkbox<\/strong>.<\/p>\n\n\n\n<img decoding=\"async\" src=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2021\/12\/conditions-for-terms-1.png\" alt=\"conditional logic for the field for terms\">\n\n\n\n<p>Don\u2019t forget to push the <strong>\u201cApply Changes\u201d <\/strong>button after editing all fields and conditions and the <strong>\u201cUpdate\u201d <\/strong>button after you finish changing the form.<\/p>\n\n\n\n<p>We have added the form on the page in the Elementor editor and proceeded to the front end. Without any choices, we can see only two fields.<\/p>\n\n\n\n<img decoding=\"async\" src=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2021\/12\/hidden-fields-on-the-front-end-1.png\" alt=\"form on the front end\">\n\n\n\n<p>The fields will still be hidden if we select the posts and terms whose IDs haven\u2019t been entered in the <strong>Value to compare <\/strong>fields in conditional logic.<\/p>\n\n\n\n<img decoding=\"async\" src=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2021\/12\/form-on-front-end-hidden-1.png\" alt=\"form with the hidden fields\">\n\n\n\n<p>We have chosen the post and term with IDs written in conditions, and two other fields are shown.<\/p>\n\n\n\n<img decoding=\"async\" src=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2021\/12\/form-on-front-end-shown-1.png\" alt=\"form with the shown fields\">\n","protected":false},"excerpt":{"rendered":"<p>Learn how to fix issues with the conditional logic for posts and terms in checkboxes, select, and radio fields in a form.<\/p>\n","protected":false},"author":1,"featured_media":0,"template":"","troubleshoot-tags":[376],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.9 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Cannot Set Conditional Logic for Posts and Terms in the JetEngine Forms | Crocoblock<\/title>\n<meta name=\"description\" content=\"Learn how to fix conditional logic for specific Posts and Terms in Checkboxes, Select, and Radio fields by setting the correct value in WordPress JetEngine forms.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/crocoblock.com\/knowledge-base\/troubleshooting\/cannot-set-conditional-logic-for-posts-and-terms-in-jetengine-forms\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Cannot Set Conditional Logic for Posts and Terms in the JetEngine Forms | Crocoblock\" \/>\n<meta property=\"og:description\" content=\"Learn how to fix conditional logic for specific Posts and Terms in Checkboxes, Select, and Radio fields by setting the correct value in WordPress JetEngine forms.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/crocoblock.com\/knowledge-base\/troubleshooting\/cannot-set-conditional-logic-for-posts-and-terms-in-jetengine-forms\/\" \/>\n<meta property=\"og:site_name\" content=\"Help Center\" \/>\n<meta property=\"article:modified_time\" content=\"2024-01-24T18:19:09+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2021\/12\/edit-form-1.png\" \/>\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=\"4 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/crocoblock.com\/knowledge-base\/troubleshooting\/cannot-set-conditional-logic-for-posts-and-terms-in-jetengine-forms\/\",\"url\":\"https:\/\/crocoblock.com\/knowledge-base\/troubleshooting\/cannot-set-conditional-logic-for-posts-and-terms-in-jetengine-forms\/\",\"name\":\"Cannot Set Conditional Logic for Posts and Terms in the JetEngine Forms | Crocoblock\",\"isPartOf\":{\"@id\":\"https:\/\/crocoblock.com\/knowledge-base\/#website\"},\"datePublished\":\"2021-12-09T12:28:46+00:00\",\"dateModified\":\"2024-01-24T18:19:09+00:00\",\"description\":\"Learn how to fix conditional logic for specific Posts and Terms in Checkboxes, Select, and Radio fields by setting the correct value in WordPress JetEngine forms.\",\"breadcrumb\":{\"@id\":\"https:\/\/crocoblock.com\/knowledge-base\/troubleshooting\/cannot-set-conditional-logic-for-posts-and-terms-in-jetengine-forms\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/crocoblock.com\/knowledge-base\/troubleshooting\/cannot-set-conditional-logic-for-posts-and-terms-in-jetengine-forms\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/crocoblock.com\/knowledge-base\/troubleshooting\/cannot-set-conditional-logic-for-posts-and-terms-in-jetengine-forms\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/crocoblock.com\/knowledge-base\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Troubleshooting\",\"item\":\"https:\/\/crocoblock.com\/knowledge-base\/troubleshooting\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Cannot Set Conditional Logic for Posts and Terms in JetEngine Forms\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/crocoblock.com\/knowledge-base\/#website\",\"url\":\"https:\/\/crocoblock.com\/knowledge-base\/\",\"name\":\"Help Center\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\/\/crocoblock.com\/knowledge-base\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/crocoblock.com\/knowledge-base\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/crocoblock.com\/knowledge-base\/#organization\",\"name\":\"Help Center\",\"url\":\"https:\/\/crocoblock.com\/knowledge-base\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/crocoblock.com\/knowledge-base\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/04\/invert-crocoblock-logo.svg\",\"contentUrl\":\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/04\/invert-crocoblock-logo.svg\",\"caption\":\"Help Center\"},\"image\":{\"@id\":\"https:\/\/crocoblock.com\/knowledge-base\/#\/schema\/logo\/image\/\"}}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Cannot Set Conditional Logic for Posts and Terms in the JetEngine Forms | Crocoblock","description":"Learn how to fix conditional logic for specific Posts and Terms in Checkboxes, Select, and Radio fields by setting the correct value in WordPress JetEngine forms.","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:\/\/crocoblock.com\/knowledge-base\/troubleshooting\/cannot-set-conditional-logic-for-posts-and-terms-in-jetengine-forms\/","og_locale":"en_US","og_type":"article","og_title":"Cannot Set Conditional Logic for Posts and Terms in the JetEngine Forms | Crocoblock","og_description":"Learn how to fix conditional logic for specific Posts and Terms in Checkboxes, Select, and Radio fields by setting the correct value in WordPress JetEngine forms.","og_url":"https:\/\/crocoblock.com\/knowledge-base\/troubleshooting\/cannot-set-conditional-logic-for-posts-and-terms-in-jetengine-forms\/","og_site_name":"Help Center","article_modified_time":"2024-01-24T18:19:09+00:00","og_image":[{"url":"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2021\/12\/edit-form-1.png"}],"twitter_card":"summary_large_image","twitter_misc":{"Est. reading time":"4 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/crocoblock.com\/knowledge-base\/troubleshooting\/cannot-set-conditional-logic-for-posts-and-terms-in-jetengine-forms\/","url":"https:\/\/crocoblock.com\/knowledge-base\/troubleshooting\/cannot-set-conditional-logic-for-posts-and-terms-in-jetengine-forms\/","name":"Cannot Set Conditional Logic for Posts and Terms in the JetEngine Forms | Crocoblock","isPartOf":{"@id":"https:\/\/crocoblock.com\/knowledge-base\/#website"},"datePublished":"2021-12-09T12:28:46+00:00","dateModified":"2024-01-24T18:19:09+00:00","description":"Learn how to fix conditional logic for specific Posts and Terms in Checkboxes, Select, and Radio fields by setting the correct value in WordPress JetEngine forms.","breadcrumb":{"@id":"https:\/\/crocoblock.com\/knowledge-base\/troubleshooting\/cannot-set-conditional-logic-for-posts-and-terms-in-jetengine-forms\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/crocoblock.com\/knowledge-base\/troubleshooting\/cannot-set-conditional-logic-for-posts-and-terms-in-jetengine-forms\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/crocoblock.com\/knowledge-base\/troubleshooting\/cannot-set-conditional-logic-for-posts-and-terms-in-jetengine-forms\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/crocoblock.com\/knowledge-base\/"},{"@type":"ListItem","position":2,"name":"Troubleshooting","item":"https:\/\/crocoblock.com\/knowledge-base\/troubleshooting\/"},{"@type":"ListItem","position":3,"name":"Cannot Set Conditional Logic for Posts and Terms in JetEngine Forms"}]},{"@type":"WebSite","@id":"https:\/\/crocoblock.com\/knowledge-base\/#website","url":"https:\/\/crocoblock.com\/knowledge-base\/","name":"Help Center","description":"","publisher":{"@id":"https:\/\/crocoblock.com\/knowledge-base\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/crocoblock.com\/knowledge-base\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/crocoblock.com\/knowledge-base\/#organization","name":"Help Center","url":"https:\/\/crocoblock.com\/knowledge-base\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/crocoblock.com\/knowledge-base\/#\/schema\/logo\/image\/","url":"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/04\/invert-crocoblock-logo.svg","contentUrl":"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/04\/invert-crocoblock-logo.svg","caption":"Help Center"},"image":{"@id":"https:\/\/crocoblock.com\/knowledge-base\/#\/schema\/logo\/image\/"}}]}},"_links":{"self":[{"href":"https:\/\/crocoblock.com\/knowledge-base\/wp-json\/wp\/v2\/troubleshooting\/1367"}],"collection":[{"href":"https:\/\/crocoblock.com\/knowledge-base\/wp-json\/wp\/v2\/troubleshooting"}],"about":[{"href":"https:\/\/crocoblock.com\/knowledge-base\/wp-json\/wp\/v2\/types\/troubleshooting"}],"author":[{"embeddable":true,"href":"https:\/\/crocoblock.com\/knowledge-base\/wp-json\/wp\/v2\/users\/1"}],"wp:attachment":[{"href":"https:\/\/crocoblock.com\/knowledge-base\/wp-json\/wp\/v2\/media?parent=1367"}],"wp:term":[{"taxonomy":"troubleshoot-tags","embeddable":true,"href":"https:\/\/crocoblock.com\/knowledge-base\/wp-json\/wp\/v2\/troubleshoot-tags?post=1367"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}