Skip to content

Validation of the form fields #798

Answered by just-boris
SashaDorfman asked this question in Q&A
Discussion options

You must be logged in to vote

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

Replies: 1 comment

Comment options

You must be logged in to vote
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
Category
Q&A
Labels
None yet
2 participants