Fields required when they shouldn't be.

Support General Fields required when they shouldn't be.Resolved

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #44697
    Topher DeRosiaTopher DeRosia
    Participant

    I have a field that won't let me save any posts if it's empty, it says it's required.

    It looks like this:

                        [
                            'name'     => __( 'Title', 'fangoria' ),
                            'id'       => $prefix . 'listicle_title',
                            'type'     => 'text',
    		        'required' => false,
                        ],

    Where else should I look?

    #44702
    PeterPeter
    Moderator

    Hello Topher,

    If the required setting is set to false, you can save the post with an empty field value. If it is required, please check if you use a validation or a custom code that sets the require for the HTML field.
    https://docs.metabox.io/validation/

    #44707
    Topher DeRosiaTopher DeRosia
    Participant

    The issue was that I had exported the code and made a plugin WITHOUT the requirement, but left the one on in the Builder, so it was over-riding my code. You can close this one.

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.