{"id":18990211,"date":"2026-08-11T08:15:32","date_gmt":"2026-08-11T08:15:32","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/checkbox-dependencies-break-if-quantity-boxes-are-enabled\/"},"modified":"2026-08-11T09:47:56","modified_gmt":"2026-08-11T09:47:56","slug":"checkbox-dependencies-break-if-quantity-boxes-are-enabled","status":"publish","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/checkbox-dependencies-break-if-quantity-boxes-are-enabled\/","title":{"rendered":"Checkbox dependencies break if quantity boxes are enabled"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">Hi,<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">I believe I have found a bug related to checkbox dependencies when the option <strong>\u201cEnable quantity boxes for each choice\u201d<\/strong> is enabled.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">I created a test form with one Checkboxes field containing 6 choices. For each choice, I configured a different dependent field with informative text:<\/p>\n\n\n\n<ul>\n<li>Choice 1 \u2192 show Field 1<\/li>\n\n\n\n<li>Choice 2 \u2192 show Field 2<\/li>\n\n\n\n<li>Choice 3 \u2192 show Field 3<\/li>\n\n\n\n<li>Choice 4 \u2192 show Field 4<\/li>\n\n\n\n<li>Choice 5 \u2192 show Field 5<\/li>\n\n\n\n<li>Choice 6 \u2192 show Field 6<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">When <strong>\u201cEnable quantity boxes for each choice\u201d is disabled<\/strong>, all dependencies work correctly. However, after enabling <strong>\u201cEnable quantity boxes for each choice\u201d<\/strong>, the dependency logic breaks.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">In my test:<\/p>\n\n\n\n<ul>\n<li>Choice 1 \u2192 correctly shows Field 1<\/li>\n\n\n\n<li>Choice 2 \u2192 incorrectly shows Field 3<\/li>\n\n\n\n<li>Choice 3 \u2192 incorrectly shows Field 5<\/li>\n\n\n\n<li>Choice 4, 5, 6 \u2192 no dependent field is displayed<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">If I disable quantity boxes again, all dependencies immediately work correctly. It looks like the additional quantity inputs may be affecting the indexing or mapping of checkbox choices used by the dependency logic.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Could you please check whether this is a known issue and advise if there is a fix or workaround? The link to test page provided below.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Versions<\/strong>:<br \/>Calculated Fields Form: 5.4.9.8<br \/>WordPress: 7.0.3<br \/>PHP: 8.3.31<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Best regards,<br \/>Anastasija<\/p>\n","protected":false},"template":"","class_list":["post-18990211","topic","type-topic","status-publish","hentry"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/18990211","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic"}],"about":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":1,"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/18990211\/revisions"}],"predecessor-version":[{"id":18990288,"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/18990211\/revisions\/18990288"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=18990211"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}