Skip to content

Documentation: "First Application" form validating before submitting #3071

Description

@PaulWalkerUK

Describe the bug
In the online documentation, following "Build your first application" --> "Create news items", the form is validated as soon as it's first loaded, before the user submits it. I've seen a discussion about this where it was suggested there should be an extra check to see that it is a POST request before the validation is called.

CodeIgniter 4 version
Current page as published (as of 7th June 2020)

Affected module(s)
Documentation

Expected behavior, and steps to reproduce if appropriate
I think the documentation should be updated so the form is only validated after the form has been submitted, not when it's initially loaded. As someone following the tutorial, I thought I had made a mistake when I was seeing the validation messages before submitting the form

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugVerified issues on the current code behavior or pull requests that will fix them

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions