Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Docs] Guide page about getting and setting field values #478

Open
juliendelort opened this issue Oct 18, 2023 · 1 comment
Open

[Docs] Guide page about getting and setting field values #478

juliendelort opened this issue Oct 18, 2023 · 1 comment

Comments

@juliendelort
Copy link
Contributor

Something that people usually look for when using a forms library is being able to easily get and set field values, so we should have a page in the guide section for that.

Some topics that the page should cover:

  • How do I initialize the form?
  • How do I initialize the form with values resulting from an API call? (we can show how to do this with and without Tanstack Query)
  • How do I set a single field vs the entire form (if it is possible to set all the fields at once)
  • Will setting a new value programmatically trigger validation? If not, is there a way to trigger it?
  • How do I retrieve the current value of a single field? Of the entire form? (not necessarily within a onchange/onblur callback but also by directly calling the form API object)
  • How do I listen for changes?
@crutchcorn
Copy link
Member

I like this idea and outline. Let's move forward with it

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

No branches or pull requests

2 participants