Skip to content

Checkbox not working with FormData API #1908

Discussion options

You must be logged in to vote

Hi there @arodriguezcortes 👋

Check out this codesandbox I created demonstrating how you can use Checkbox as an uncontrolled component and get the form data using FormData. Feel free to fork the above sandbox and show us more clearly how you are implementing this uncontrolled form, as without being able to see the context around this implementation, it is difficult to debug.

🕵️‍♀️ Some questions that will help us gain clarity 👇
Is this handleSubmit function being used as a click handler on a button that is intended to submit the form? If so I have a few follow up tips and questions that might be of use:

  • Are you using your handleSubmit function as a callback for the onSubmit function on the

Replies: 2 comments 4 replies

Comment options

You must be logged in to vote
0 replies
Answer selected by arodriguezcortes
Comment options

You must be logged in to vote
4 replies
@andioneto
Comment options

@andioneto
Comment options

@arodriguezcortes
Comment options

@andioneto
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants