Skip to content

Remove the automatic "required" attr from form inputs #4019

@felds

Description

@felds

Having a layer of validation on the browser is great, but most of the time the guesser gets it all wrong!

Take this example: If you create a boolean field on an entity and let the guesser do its work, it sets the field as a required checkbox.
How can one choose the false option then?

The same happen with text fields.
If the column is not nullable but I'm not validating it's content, an empty value is just saved as an empty string on the db…
… unless you have HTML5 validation enabled on your browser. Why don't the type guesser don't follow what the rest of the application is doing?

Maybe the guesser should set the "required" atribute only when the field is explicitly validated with NotBlank or NotNull.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      pFad - Phonifier reborn

      Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

      Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


      Alternative Proxies:

      Alternative Proxy

      pFad Proxy

      pFad v3 Proxy

      pFad v4 Proxy