Support Forum
Support › Meta Box Conditional Logic › WordPress 5.6.x Conditional Logic issues :hidden
Moving to a new thread, since topic/conditional-logic-seems-broken-since-update was marked as closed.
Reply: #post-24599
Here it is as best I could encode the complete array: https://gist.github.com/thefrosty/15a86daf1bfcffc7d319fcde10ab5581
I’ve also have a video showing the complex fields and how it is working: (expires in 7 days) https://webmshare.com/play/AWPGQ
Reply: #post-24601
I have confirmed the following:
Broken on WordPress 5.6.2 with MB: 5.3.8 & AIO: 1.13.3
Working on WordPress 5.5.x with MB: 5.3.8 & AIO: 1.11.19
Need to figure out if a WordPress 5.6.x or AIO > 1.11.19 issue.
Confirmed working on WordPress 5.5.3 with MB: 5.3.8 & AIO: 1.13.3. So more than likely related to some of the JS changes that came in WordPress 5.6.x, will need to look at the 5.6 Field Guide.
Maybe related to: ticket/52440?
I see the following console log (warning):
JQMIGRATE: jQuery.isNumeric() is deprecated jquery-migrate.js:100:12
console.trace() jquery-migrate.js:102:13
jQuery 2
isLogicCorrect https://.../wp-content/plugins/meta-box-aio/vendor/meta-box/meta-box-conditional-logic/conditional-logic.js?ver=1.5:279
isLogicCorrect https://.../wp-content/plugins/meta-box-aio/vendor/meta-box/meta-box-conditional-logic/conditional-logic.js?ver=1.5:224
runConditionalLogic https://...wp-content/plugins/meta-box-aio/vendor/meta-box/meta-box-conditional-logic/conditional-logic.js?ver=1.5:182
jQuery 2
runConditionalLogic https://.../wp-content/plugins/meta-box-aio/vendor/meta-box/meta-box-conditional-logic/conditional-logic.js?ver=1.5:177
<anonymous> https://.../wp-content/plugins/meta-box-aio/vendor/meta-box/meta-box-conditional-logic/conditional-logic.js?ver=1.5:595
jQuery 9
<anonymous> https://.../wp-content/plugins/meta-box-aio/vendor/meta-box/meta-box-conditional-logic/conditional-logic.js?ver=1.5:594
<anonymous> https:/.../wp-content/plugins/meta-box-aio/vendor/meta-box/meta-box-conditional-logic/conditional-logic.js?ver=1.5:604
<code></code>
Hi,
I've tested to run your code on my local site but not see any issue. Screen record https://share.getcloudapp.com/ApuRDAdR.
Look at your screen record, I do not see the error text "This field is required." under the empty field.
Can you please re-test your case in a fresh install of WordPress and Meta Box?
I can confirm it's an issue with WordPress 5.6 with Polylang PRO installed. Still unclear as to the underlying issue. Will confirm as I know more in the coming weeks.
I have tracked down the underlying issue. In WordPress 5.6 (as mentioned above in the steps where it's broken vs working) having a hidden wysiwyg field blocks the publication when that field type is set to required as post meta. Until I toggle the option that shows the wysiwyg and then re-hides it will unblock the validation of required blocker.
Let me try to get a video attached and follow up if it would help. I will also try to see what might have changed from core WP 5.5.x to 5.6.x with the wp_editor.
Thanks.
Video walk through (expires in 7 days): https://webmshare.com/rVW6x