Validation responses when filtering via rwmb_frontend_validate

Support MB Frontend Submission Validation responses when filtering via rwmb_frontend_validateResolved

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #14588
    TGHPTGHP
    Participant

    Using the rwmb_frontend_validate filter we can prevent the post from getting created by returning false which is really useful.

    It would be really nice on top of that, to be able to add some feedback/errors somehow at this point that are displayed on the frontend. Right now, even if the post isn't created (rwmb_frontend_validate filter result returns false) there is still a confirmation. If that could display feedback as to why the post wasn't created, it would be even more useful for server side validation.

    A good use case for this might be server side validation of file uploads - ensuring the file in $_FILES is of an allowed mime type and file size. Client side validation of this can always be circumvented.

    #14633
    Anh TranAnh Tran
    Keymaster

    Hi TGHP,

    I've just updated the plugin to the version 2.0.0 with better server-side validation. Please see the updated documentation for details.

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