Making custom meta box required (w error message if not filled in) in Gutenberg?
-
<input required name="myName" type="text" value="<?php echo @myValue; ?>" class="regular-text">
This does not produce an error message when the page is Updated.
What else do I need to do in order to tell the user that this field is required in Gutenberg?
Using the Classic Editor plugin it won’t even let me update the page. It presents me with a “!” tooltip that says “Please fill out this field.” ??
Thanks!
- The topic ‘Making custom meta box required (w error message if not filled in) in Gutenberg?’ is closed to new replies.