Validation of the form fields #798
Answered
by
just-boris
SashaDorfman
asked this question in
Q&A
-
Hello ! I'm putting together a form using Cloudscape. How do I validate input fields ? |
Beta Was this translation helpful? Give feedback.
Answered by
just-boris
Mar 2, 2023
Replies: 1 comment
-
Hello! Validation messages should be provided via FormField component <FormField errorText={validateValue(value)}>
<Input value={value}>
</FormField> Check this codesanbox for a full example: https://codesandbox.io/s/cloudscape-min-max-05xtb4?file=/src/App.tsx |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
just-boris
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hello!
Validation messages should be provided via FormField component
Check this codesanbox for a full example: https://codesandbox.io/s/cloudscape-min-max-05xtb4?file=/src/App.tsx