• Resolved Martin Sauter

    (@martinsauter)


    I have a custom post type with multiple required fields.

    When I create a new post, fill in the post title (but nothing else), I am still able to save this post, and it doesn’t give me any warning about missing data in the required fields. The post is created, and the title is stored.

    When I do the same thing, but fill in some (not all) of the required fields, I still can save this post without a warning, but none of the filled in information is stored (except the title).

    I am using WordPress 6.5.3 and Pods 3.2.1.1.

Viewing 1 replies (of 1 total)
  • Plugin Support pdclark

    (@pdclark)

    Due to limitations in the Block Editor APIs, there is not yet a way to provide feedback when a required field is not filled out. The result is there is not feedback if the save does not occur because requirements are not met.

    Working around this depends on the expected values. One approach might be to provide feedback as the user edits fields with custom JavaScript using https://docs.pods.io/code/dfv-js-api/

Viewing 1 replies (of 1 total)

The topic ‘Issue with required fields’ is closed to new replies.