AdvancedCustomFields / acf

Advanced Custom Fields
http://advancedcustomfields.com/
868 stars 180 forks source link

5.9.0-beta4 - Validation of required ACF field on InnerBlocks block not working #340

Open maxluijben opened 4 years ago

maxluijben commented 4 years ago

I created a custom InnerBlocks block and assigned a required ACF text field to the block. But when i save the post without adding data to the field, i get no validation error and i'm still able to save the post. Is this is a bug? Or am i doing something wrong?

I'm running ACF Version 5.9.0-beta4 on Wordpress 5.4.2.

Other then that, i'm loving the InnerBlocks feature and plugin overall!

elliotcondon commented 4 years ago

Hi @maxluijben

Thanks for the bug report and feedback!

Unfortunately, it is not yet possible to validate ACF Blocks custom fields. We have only just found a way to validate metaboxes in the Gutenberg editor, and will hope to add in this feature to ACF Blocks too in the coming releases!

maxluijben commented 4 years ago

Hi @elliotcondon Thanks for your quick reply :) It would indeed be great to validate custom fields ACF Blocks.
Looking forward to seeing this integrated in the plugin.