Skip to content

HTML5 validation not playing nicely with decimal numbers #4429

@robinsowell

Description

@robinsowell

So- create a number field, set the type to decimal. Make a decimal. html 5 validation will object.

If the type = number? It's just not liking it.

Screenshot 2024-08-19 at 6 00 27 PM

Weirdly- a text field set to either number OR decimal does just fine with a decimal, but that's because the type in those cases is still text.

Screenshot 2024-08-19 at 5 39 35 PM

And I think we need to clarify in the docs the difference between a number field and a decimal field- for both text and decimal. But in a text field, it saves decimals ok, but drops the trailing zero if there is one.

Also note- if you switch back and forth between text and number types, the db doesn't always change. So don't test that way.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Bug: AcceptedBug has been confirmed, is reproducible, and ready to work on.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions