-
Tried this but it doesn't work.. and there's no documentation either
|
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 1 reply
-
Have you passed the |
Beta Was this translation helpful? Give feedback.
-
@ethanshar I want to validate the length of the input, the mentioned code snippet pertains to the same but doesn't help. Here's my full code:
So I want to force the users to use a password longer than 7 characters... |
Beta Was this translation helpful? Give feedback.
-
Hi @navxio Anyway, since we're in the middle of migration, this might be a little confusing.
Regardless, notice that in order to a separate validate message for each validation you can pass an array of validate messages (: good luck |
Beta Was this translation helpful? Give feedback.
Hi @navxio
You are using the old implementation of TextField, you can follow the warnings you get to migrate to the new implementation.
Anyway, since we're in the middle of migration, this might be a little confusing.
You have 2 options:
migrate
prop. This will get you the new TextField implementation.Incubator.TextField
directly (e.g<Incubator.TextField ... .>
)Regardless, notice that in order to a separate validate message for each validation you can pass an array of validate messages (:
good luck