I want to add a number only input field along with a maximum length restriction (Prevent user from entering more than the length set, not just throw an error). However, the pattern validation with regex ^[0-9]{1,4}$ is ignored when the input type is set to number
Related topics
Topic | Replies | Views | Activity | |
---|---|---|---|---|
Regex Validation Help | 1 | 126 | August 19, 2020 | |
Pattern Validation fails on Number input but works on Text Input? | 5 | 1574 | February 19, 2020 | |
set input to accept only numbers characteres via code | 4 | 922 | December 17, 2019 | |
[BUG (?)] numeric input element | 4 | 151 | November 3, 2019 | |
How can I put Pattern Validation in an input field for 12 digits of number/text with spaces? | 0 | 62 | January 5, 2022 |