{"id":2299,"date":"2020-11-30T13:15:28","date_gmt":"2020-11-30T12:15:28","guid":{"rendered":"http:\/\/jakisproblem.pl\/?p=2299"},"modified":"2020-11-30T13:15:52","modified_gmt":"2020-11-30T12:15:52","slug":"2299","status":"publish","type":"post","link":"http:\/\/u239160.webh.me\/jakisproblem.pl\/index.php\/2020\/11\/30\/2299\/","title":{"rendered":"How to disable an Infopath field when a value is selected in another field"},"content":{"rendered":"\n<p>17JUL<\/p>\n\n\n\n<p>Imagine you have an Infopath field with choices, (e.g. Active, Canceled \u2013 Current Status of Primary Failed Part#)&nbsp;and you have another form field that you need to only display if \u2018Canceled\u2019 is chosen (Cancelation Date). See the screen below. This post will descripe the steps to disable the 2nd field within the Infopath form.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><a href=\"https:\/\/collab365.community\/wp-content\/uploads\/blogs\/1-1000\/26-SPcommForm.png\"><img decoding=\"async\" src=\"https:\/\/collab365.community\/wp-content\/uploads\/blogs\/1-1000\/26-SPcommForm.png?width=750\" alt=\"\"\/><\/a><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">Step-by-Step guide&nbsp;showing how to set this up<\/h2>\n\n\n\n<p>1: Create Rule on the cancellation date<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/collab365.community\/wp-content\/uploads\/blogs\/1-1000\/29-Formating.png\" alt=\"\"\/><\/figure>\n\n\n\n<p>2. Click \u2018New\u2019 and choose \u2018Formatting\u2019.<\/p>\n\n\n\n<p>You will need to give the rule a name, I called it \u2018date\u2019.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><a href=\"https:\/\/collab365.community\/wp-content\/uploads\/blogs\/1-1000\/30-SPFormating.png\"><img decoding=\"async\" src=\"https:\/\/collab365.community\/wp-content\/uploads\/blogs\/1-1000\/30-SPFormating.png\" alt=\"\"\/><\/a><\/figure>\n\n\n\n<p>3: Now click on \u2018<strong>none\u2019<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-image\"><a href=\"https:\/\/collab365.community\/wp-content\/uploads\/blogs\/1-1000\/32-Condition.png\"><img decoding=\"async\" src=\"https:\/\/collab365.community\/wp-content\/uploads\/blogs\/1-1000\/32-Condition.png\" alt=\"\"\/><\/a><\/figure>\n\n\n\n<p>4: Set the rules condition as follows (e.g. If the Current Status of Failed Part {is not equal to} \u201cCanceled\u201d(this is text)).<\/p>\n\n\n\n<figure class=\"wp-block-image\"><a href=\"https:\/\/collab365.community\/wp-content\/uploads\/blogs\/1-1000\/34-Rule.png\"><img decoding=\"async\" src=\"https:\/\/collab365.community\/wp-content\/uploads\/blogs\/1-1000\/34-Rule.png\" alt=\"\"\/><\/a><\/figure>\n\n\n\n<p>5: I want to disable the field and backfill with a dark gray<\/p>\n\n\n\n<figure class=\"wp-block-image\"><a href=\"https:\/\/collab365.community\/wp-content\/uploads\/blogs\/1-1000\/36-Disable.png\"><img decoding=\"async\" src=\"https:\/\/collab365.community\/wp-content\/uploads\/blogs\/1-1000\/36-Disable.png\" alt=\"\"\/><\/a><\/figure>\n\n\n\n<p>(You can also hide this field).<\/p>\n\n\n\n<p>6: Now, Preview your form to check the look and function<br><br>https:\/\/collab365.community\/infopath-set-condition-to-disable-field\/<\/p>\n","protected":false},"excerpt":{"rendered":"<p class=\"excerpt\">17JUL Imagine you have an Infopath field with choices, (e.g. Active, Canceled \u2013 Current Status of Primary Failed Part#)&nbsp;and you have another form field that you need to only display if \u2018Canceled\u2019 is chosen (Cancelation Date). See the screen below. This post will descripe the steps to disable the 2nd field within the Infopath form.&hellip;<\/p>\n<p class=\"more-link-p\"><a class=\"more-link\" href=\"http:\/\/u239160.webh.me\/jakisproblem.pl\/index.php\/2020\/11\/30\/2299\/\">Read more &rarr;<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-2299","post","type-post","status-publish","format-standard","hentry","category-bez-kategorii"],"_links":{"self":[{"href":"http:\/\/u239160.webh.me\/jakisproblem.pl\/index.php\/wp-json\/wp\/v2\/posts\/2299","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/u239160.webh.me\/jakisproblem.pl\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/u239160.webh.me\/jakisproblem.pl\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/u239160.webh.me\/jakisproblem.pl\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/u239160.webh.me\/jakisproblem.pl\/index.php\/wp-json\/wp\/v2\/comments?post=2299"}],"version-history":[{"count":2,"href":"http:\/\/u239160.webh.me\/jakisproblem.pl\/index.php\/wp-json\/wp\/v2\/posts\/2299\/revisions"}],"predecessor-version":[{"id":2301,"href":"http:\/\/u239160.webh.me\/jakisproblem.pl\/index.php\/wp-json\/wp\/v2\/posts\/2299\/revisions\/2301"}],"wp:attachment":[{"href":"http:\/\/u239160.webh.me\/jakisproblem.pl\/index.php\/wp-json\/wp\/v2\/media?parent=2299"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/u239160.webh.me\/jakisproblem.pl\/index.php\/wp-json\/wp\/v2\/categories?post=2299"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/u239160.webh.me\/jakisproblem.pl\/index.php\/wp-json\/wp\/v2\/tags?post=2299"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}