You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Im currently trying to get the field inputs to work with the use of regular expressions. I am however experiencing some issues when trying to 'submit' the form (and adding a submit prevent to log the current model).
when clicking preview model, even when the regexp result is valid, the (browser)? still somehow shows the error.
I tested with the following values:
"" -> shows that the field is required, which is correct.
1 -> this doesnt follow the regexp, shows correct error.
11 -> this follows the regexp, still shows error when "submitting".
I expect the model to be printed in de console because the regular expression returns trueyet it just doesn't work for some reason. Am I missing something or... ?
I know that you can just change the inputType to "number" and fixing it that way, I am just making this example more simple. I want to add more complex regexp which mixes numbers and strings etc.
~ Thanks!
The text was updated successfully, but these errors were encountered:
Hello!
Im currently trying to get the field inputs to work with the use of regular expressions. I am however experiencing some issues when trying to 'submit' the form (and adding a submit prevent to log the current model).
code on JSfiddle: https://jsfiddle.net/qb1jurzh/8/
when clicking preview model, even when the regexp result is valid, the (browser)? still somehow shows the error.
I tested with the following values:
I expect the model to be printed in de console because the regular expression returns
true
yet it just doesn't work for some reason. Am I missing something or... ?I know that you can just change the
inputType
to"number"
and fixing it that way, I am just making this example more simple. I want to add more complex regexp which mixes numbers and strings etc.~ Thanks!
The text was updated successfully, but these errors were encountered: