amplify-ui icon indicating copy to clipboard operation
amplify-ui copied to clipboard

[FR] Ability to tell if form is dirty when adding custom sign up fields

Open ben-claimable opened this issue 1 year ago • 2 comments

On which framework/platform would you like to see this feature implemented?

React

Which UI component is this feature-request for?

Authenticator

Please describe your feature-request in detail.

We are implementing an "Agree to terms" checkbox on sign up following the example listed in your docs (https://ui.docs.amplify.aws/react/connected-components/authenticator/customization#sign-up-fields).

We noticed that the error message is showing up before the form is submitted, and we would like to have a way to only show the error message is the form is "dirty".

Please describe a solution you'd like.

No response

We love contributors! Is this something you'd be interested in working on?

  • [ ] 👋 I may be able to implement this feature request.
  • [ ] ⚠️ This feature might incur a breaking change.

ben-claimable avatar Sep 05 '24 19:09 ben-claimable

@ben-claimable do you have an example code or screenshot you can paste to help us figure out which particular fields you are concerned with?

The github link you posted gives a 404, maybe the repository is private?

thaddmt avatar Sep 06 '24 00:09 thaddmt

Just edited with the correct link, sorry about that. For now we have decided to remove the error messages to get around this issue, but this feature would still be useful.

ben-claimable avatar Sep 06 '24 12:09 ben-claimable