Skip to content

Max/min mixmatch between numbers and strings #58

@Solaris9

Description

@Solaris9

Issue

Lets say you have a field for a username and set the min/max to 3 and 10, entering any A-Z character will work as expected but entering "11" as in the number 11 will say the input is too big for that field, it thinks you're entering a number literal instead of plain text so 11 >= 10 instead of (2 >= 11, the length of the input text). You handle both numbers and strings with the same min/max validation but there isn't an option to specific if you want a number or a string.

Solution?

Add a number type strictly for numbers only and keep the text type as stringifed text. Entering anything other than a number will remove that character and display a tooltip to let the user know only numbers are allowed.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions