WordPress.org

Forums

Magic Fields
[resolved] No error for missing required fields. (3 posts)

  1. p.dirac
    Member
    Posted 11 months ago #

    On WP 3.9, I just migrated from Flutter to Magic Fields 1.6.2.
    The Custom Write Panel fields appear to be ok. Some fields are required. However when I edit a post that contains the required fields, and leave out a required field, and then Save Draft, there is no error message for the missing required field. Any other entered field values do get saved.

    https://wordpress.org/plugins/magic-fields/

  2. hunk
    Member
    Plugin Author

    Posted 10 months ago #

    any error of javascript?

  3. p.dirac
    Member
    Posted 10 months ago #

    There is no javascript error.
    Near the top of the page, the message is:
    "Post draft updated."

    I expected to see this message (like Flutter) at the top:
    "Post was not published - You have errors in some fields, please check the fields below.".
    And I expected each required missing field to be highlighted with a message:
    "Error: field can not be empty".

    I do have a workaround. In the Magic Fields javascript file, plugins\magic-fields\js\custom_fields\validate.js, commenting out the showErrors function appears to solve the problem.

Reply

You must log in to post.

About this Plugin

About this Topic