Code Monkey home page Code Monkey logo

Comments (3)

tobimori avatar tobimori commented on June 12, 2024 1

I fixed the bug you mentioned and it will be included in the upcoming release in the following days.

from kirby-dreamform.

tobimori avatar tobimori commented on June 12, 2024

The required attribute is added to fields that must be filled out. However, browsers will ignore this attribute since the form has the novalidate attribute set. The reason for using novalidate is that the built-in browser validation is not easily customizable without JavaScript, and we have extensive custom server-side validation checks in place.

In my opinion, this can lead to a poor user experience as form would display two different types of error messages: one from the browser's native validation and another from the server-side validation.

The Email field serves as a good example to illustrate the differences between browser and server-side validation:

Validation Check Browser Server
Field is required
Value is a valid email format
Email domain actually exists
Email domain is not a throwaway/spam email

As you can see, the browser validation stops way early. This pattern is similar for all other form fields.

from kirby-dreamform.

animaux avatar animaux commented on June 12, 2024

Thanks for elaborating on the required-attribute, sounds very reasonable!

from kirby-dreamform.

Related Issues (16)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.