{"id":19029543,"date":"2026-09-25T17:46:20","date_gmt":"2026-09-25T17:46:20","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/solved-missing-conditional-fields-failed-submissions-and-security-error\/"},"modified":"2026-09-25T17:46:20","modified_gmt":"2026-09-25T17:46:20","slug":"solved-missing-conditional-fields-failed-submissions-and-security-error","status":"publish","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/solved-missing-conditional-fields-failed-submissions-and-security-error\/","title":{"rendered":"[Solved] Missing conditional fields, failed submissions, and security error"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">My team ran into an issue with a WPForms form today that doesn&#8217;t seem to be documented very well online, so I&#8217;m posting the solution here in case it helps anyone.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Our site was loading a WPForms form via one of ElementorKit&#8217;s &#8220;WPForms&#8221; elements. Sometimes it worked fine, but other times it was running into a mixture of the following issues:<\/p>\n\n\n\n<ul>\n<li>The conditional fields weren&#8217;t appearing even when their conditions were true<\/li>\n\n\n\n<li>Submitting the form would sometimes take you back to a random step without any visible errors<\/li>\n\n\n\n<li>Submitting the form would sometimes display this error: &#8220;The form could not be submitted due to a security issue&#8221;<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">We tried disabling our caching plugin, flushing the server cache, and disabling Varnish, but none of those helped.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Instead, it turned out to be a conflict with Elementor&#8217;s element cache feature. The issue can be fixed by either disabling the element cache feature globally (Elementor settings &gt; Performance) or by disabling it on the affected element in the Elementor editor (Element &gt; Advanced &gt; Layout &gt; Cache Settings &gt; Inactive).<\/p>\n","protected":false},"template":"","class_list":["post-19029543","topic","type-topic","status-publish","hentry"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/19029543","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":0,"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/19029543\/revisions"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=19029543"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}