Skip to content

Using the ariaRequired on a Form Field in Cloudscape #813

Answered by taheramr
JSignature asked this question in Q&A
Discussion options

You must be logged in to vote

Hello,

No worries, your question is totally fine and don't hesitate on asking questions to us and we'll come back to you as soon as we could!

As for the validation we leave this part to be entirely controlled by your side, so in your sample you'll have to implement a way to validate after the user submits, so in this case:

  • When use submit, the on submit will check if all required or fields with requirements are met
  • If anything is invalid, you'll not proceed and you'll show errors.

This is one way of doing so, you can also rely on external validation libraries like zod and yup to carry out such validations and get error messages for you, we have a general guideline here that you can follow

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@JSignature
Comment options

Answer selected by JSignature
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